remove unknown command handler

This commit is contained in:
Ashley 2024-08-28 19:45:27 +00:00
parent 21915aad67
commit c6bdd23bf4

View file

@ -135,9 +135,8 @@ client.on(sdk.RoomEvent.Timeline, async function (event, room, toStartOfTimeline
var args = content.split(/\s/g);
var cmd = args.shift();
args = content.substring(cmd.length + 1);
if(!doCommand(client, event, cmd, args)) {
client.reply(event, `Command "${cmd}" not found.\nRun "${process.env.PREFIX}help" for a list of commands.`);
}
doCommand(client, event, cmd, args)
}
});