MCPcopy
hub / github.com/eritislami/evobot / constructor

Method constructor

structs/Bot.ts:29–42  ·  view source on GitHub ↗
(public readonly client: Client)

Source from the content-addressed store, hash-verified

27 public queues = new Collection<Snowflake, MusicQueue>();
28
29 public constructor(public readonly client: Client) {
30 this.client.login(config.TOKEN);
31
32 this.client.on("ready", () => {
33 console.log(`${this.client.user!.username} ready!`);
34
35 this.registerSlashCommands();
36 });
37
38 this.client.on("warn", (info) => console.log(info));
39 this.client.on("error", console.error);
40
41 this.onInteractionCreate();
42 }
43
44 private async registerSlashCommands() {
45 const rest = new REST({ version: "9" }).setToken(config.TOKEN);

Callers

nothing calls this directly

Calls 2

registerSlashCommandsMethod · 0.95
onInteractionCreateMethod · 0.95

Tested by

no test coverage detected