Skip to content

Commit c6aacfb

Browse files
authored
fix: Add command runner into registry (#1341)
1 parent 19e9a37 commit c6aacfb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/bot/src/server/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { membersRepositoryKey } from '../model/member.js';
4242
import { randomGeneratorKey } from '../model/random-generator.js';
4343
import { roleRepositoryKey } from '../model/role.js';
4444
import { voiceRoomControllerKey } from '../model/voice-room-controller.js';
45-
import { CommandRunner } from '../runner/command.js';
45+
import { CommandRunner, commandRunnerKey } from '../runner/command.js';
4646
import {
4747
EmojiResponseRunner,
4848
MessageResponseRunner,
@@ -164,6 +164,7 @@ if (features.includes('MESSAGE_UPDATE')) {
164164

165165
const commandProxy = new DiscordCommandProxy(client, PREFIX);
166166
const commandRunner = new CommandRunner(commandProxy);
167+
registry.add(commandRunnerKey, commandRunner);
167168
const stats = new DiscordMemberStats(client, GUILD_ID as Snowflake);
168169
registry.add(memberStatsKey, stats);
169170
registry.add(membersRepositoryKey, stats);

0 commit comments

Comments
 (0)