remove unknown command handler
This commit is contained in:
parent
21915aad67
commit
c6bdd23bf4
1 changed files with 2 additions and 3 deletions
5
index.js
5
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)
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue