Removing the unknown command response
Sometimes, you may want to remove the unknown command response from your bot. Be it Cleverbot or some other reason; sometimes you want it gone, and it's quite simple to remove.
Head over to your index.js
file and find your client.registry
variable. All you have to do to remove the unknown command response is adding unknownCommand
and setting it to false
in .registerDefaultCommands()
, under your registry:
client.registry
// ...
.registerDefaultCommands({
unknownCommand: false,
});
1
2
3
4
5
2
3
4
5
That's all there is to it!