mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-23 01:21:16 +00:00
Stop stripping prefixes in CommandHandler, they're already stripped.
This commit is contained in:
1 parent
ac4c447637
commit
73f2910b8e
1 file changed
+1
-1
@@ -76,7 +76,7 @@ export async function handleCommand(
|
||||
commandTable: CommandTable<BaseFunction>
|
||||
) {
|
||||
try {
|
||||
const readItems = readCommand(normalisedCommand).slice(1); // remove "!mjolnir"
|
||||
const readItems = readCommand(normalisedCommand)
|
||||
const stream = new ArgumentStream(readItems);
|
||||
const command = commandTable.findAMatchingCommand(stream)
|
||||
?? findTableCommand("mjolnir", "help");
|
||||
|
||||
Reference in new issue
Block a user