From c6bdd23bf4e8f2156aa363811ac32db078bea730 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 28 Aug 2024 19:45:27 +0000 Subject: [PATCH] remove unknown command handler --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 2f45b12..c514a7e 100644 --- a/index.js +++ b/index.js @@ -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) } });