removed unnecessary elseif
This commit is contained in:
parent
1f0171587b
commit
05b96f7eb6
1 changed files with 1 additions and 3 deletions
|
@ -38,12 +38,10 @@ client.on('message', async message => {
|
|||
if (!message.content.startsWith(prefix)) return;
|
||||
|
||||
try {
|
||||
if (commandName == "ban" || commandName == "userinfo") {
|
||||
if (commandName == "ban" || commandName == "userinfo" || commandName == "botinfo") {
|
||||
command.execute(message, client);
|
||||
} else if (commandName == "say") {
|
||||
command.execute(message, args)
|
||||
} else if (commandName == "botinfo"){
|
||||
command.execute(message, client)
|
||||
}
|
||||
else {
|
||||
command.execute(message);
|
||||
|
|
Loading…
Add table
Reference in a new issue