Browse Source

Fix exception if bot mentioned without a command

master
benji7425 4 years ago
parent
commit
71e61663e2
  1. 3
      discord-bot-core/HandleMessage.js

3
discord-bot-core/HandleMessage.js

@ -33,6 +33,9 @@ function handleMessage(client, message, commands, guildData) {
/**@param param*/
function handleInternalCommand(message, split, commands, isMemberAdmin) {
if (!split[1])
return;
if (split[1].toLowerCase() === "version")
message.reply(`${ParentPackageJSON.name} v${ParentPackageJSON.version}`);
else if (split[1].toLowerCase() === "help") {

Loading…
Cancel
Save