Skip to content

Commit a81e8b4

Browse files
committed
Add debugging command
1 parent 699afc1 commit a81e8b4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/commands/error.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import type { MessageCommand } from "./command.js";
2+
import type { ProcessableMessage } from "@/service/command.js";
3+
import type { BotContext } from "@/context.js";
24

35
export default class ErrorCommand implements MessageCommand {
46
name = "feler";
57
description = "Macht ne exception. Mehr nicht.";
68

7-
async handleMessage() {
8-
throw new Error("Fehler!");
9+
async handleMessage(_: ProcessableMessage, context: BotContext): Promise<void> {
10+
(await import("../service/lootDegradation.js")).runHalfLife(context);
11+
// throw new Error("Fehler!");
912
}
1013
}

0 commit comments

Comments
 (0)