small changes in server.js
This commit is contained in:
parent
c6ed10ae94
commit
f0c5e23720
1 changed files with 5 additions and 3 deletions
|
@ -40,15 +40,16 @@ client.on('message', async message => {
|
||||||
if (!message.content.startsWith(prefix)) return;
|
if (!message.content.startsWith(prefix)) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
switch (commandName) {
|
switch (commandName) {
|
||||||
case "ban":
|
case "ban":
|
||||||
case "userinfo":
|
|
||||||
case "botinfo":
|
case "botinfo":
|
||||||
command.execute(message, client);
|
command.execute(message, client, args);
|
||||||
break;
|
break;
|
||||||
case "say":
|
case "say":
|
||||||
case "e":
|
case "e":
|
||||||
|
case "help":
|
||||||
|
case "userinfo":
|
||||||
command.execute(message, args);
|
command.execute(message, args);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -56,6 +57,7 @@ client.on('message', async message => {
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
message.channel.send("That command either does not exist, or is broken.")
|
message.channel.send("That command either does not exist, or is broken.")
|
||||||
|
console.log(error)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue