seedcord 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1273,9 +1273,9 @@ var Bot = class extends Plugin {
|
|
|
1273
1273
|
this._client = new discord_js.Client(core.config.bot.clientOptions);
|
|
1274
1274
|
this.interactions = new InteractionController(core);
|
|
1275
1275
|
this.events = new EventController(core);
|
|
1276
|
-
this.commands = new CommandRegistry(
|
|
1277
|
-
this.emojiInjector = new EmojiInjector(
|
|
1278
|
-
|
|
1276
|
+
this.commands = new CommandRegistry(core);
|
|
1277
|
+
this.emojiInjector = new EmojiInjector(core);
|
|
1278
|
+
core.shutdown.addTask(services.ShutdownPhase.DiscordCleanup, "stop-bot", async () => await this.stop());
|
|
1279
1279
|
}
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Initializes Discord client and all controllers
|
|
@@ -1286,9 +1286,9 @@ var Bot = class extends Plugin {
|
|
|
1286
1286
|
return;
|
|
1287
1287
|
}
|
|
1288
1288
|
this.isInitialized = true;
|
|
1289
|
-
await this.login();
|
|
1290
1289
|
await this.interactions.init();
|
|
1291
1290
|
await this.events.init();
|
|
1291
|
+
await this.login();
|
|
1292
1292
|
await this.commands.init();
|
|
1293
1293
|
await this.commands.setCommands();
|
|
1294
1294
|
await this.emojiInjector.init();
|