removed unnecessary elseif

This commit is contained in:
SileNce5k 2021-02-14 20:02:04 +01:00
parent 1f0171587b
commit 05b96f7eb6
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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);