-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cicero.ts
29 lines (24 loc) · 855 Bytes
/
Cicero.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import * as config from "./config.json";
import { join } from "path";
import { ActivityType } from "discord.js";
import Cicero from "./structures/Client";
const client = new Cicero({
commandPrefix: config.prefix,
owner: config.owners,
nonCommandEditable: true
});
client.registry
.registerGroups([ ["voice", "Voice"] ])
.registerDefaultTypes()
.registerDefaultGroups()
.registerDefaultCommands()
.registerCommandsIn(join(__dirname, "commands"));
client.on("ready", () => {
client.logger.log("Ready in as "+client.user.tag+" to serve "+client.guilds.size+" servers. ");
client.voice.connections.forEach((connection) => connection.disconnect());
client.user.setActivity(config.status.name, {
url: config.status.options.url,
type: config.status.options.type as ActivityType
});
});
client.login(config.token);