servercount cli command

This commit is contained in:
Lukas | AstroGD 2022-11-24 23:03:51 +01:00
parent df8d186139
commit 4fef4e8045
Signed by: AstroGD
GPG Key ID: 82A5E6C236C535AA

View File

@ -4,6 +4,7 @@ import pack from "../../package.json";
import { Console } from "node:console";
import moment from "moment";
import startupTime from "../tools/startupTime";
import client from "../client";
import guild from "./guild";
import global from "./global";
@ -47,6 +48,11 @@ rl.on("line", async (msg) => {
break;
}
case "servercount": {
console.log(`This bot is on ${client.guilds.cache.size} guilds`);
break;
}
default: {
console.log(`Unknown command. Try "help" for help`);
break;
@ -64,5 +70,6 @@ uptime
guild
global
help
servercount
clear`);
}