Skip to content

Commit

Permalink
fix: Hot Fix (should be)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerekKiri authored Jan 17, 2019
1 parent 4892c9c commit 583cb7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ module.exports.check = function(message) {
const pref = message.content.toLowerCase().startsWith(config.Prefix)

if (pref) {
if(commands[args[1]] != undefined) {
return commands[args[1]](message)
if(commands[args[0] != undefined) {
return commands[args[0]](message)
}
else {
return message.reply('This command doesn\'t exist! :<')
Expand All @@ -48,4 +48,4 @@ module.exports.check = function(message) {
help(message)
}

}
}

0 comments on commit 583cb7b

Please sign in to comment.