Debug
This commit is contained in:
parent
c46567e831
commit
beff32bb38
1 changed files with 1 additions and 4 deletions
5
index.js
5
index.js
|
@ -204,17 +204,14 @@ client.on("messageCreate", (msg) => {
|
||||||
if (!msg.guild) return msg.channel.send("Cant do in dms lol")
|
if (!msg.guild) return msg.channel.send("Cant do in dms lol")
|
||||||
i++;
|
i++;
|
||||||
console.log("Got to %s!", i);
|
console.log("Got to %s!", i);
|
||||||
const commandName = args.shift().toLowerCase() //gets what the commands name is and makes it lowercase so it aint case sensitive
|
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
console.log("Got to %s!", i);
|
console.log("Got to %s!", i);
|
||||||
|
|
||||||
const command = client.commands.get(commandName) //gets the actual command object
|
|
||||||
|
|
||||||
try{
|
try{
|
||||||
i++;
|
i++;
|
||||||
console.log("Got to %s!", i);
|
console.log("Got to %s!", i);
|
||||||
command.execute(msg, args)
|
cmd.execute(msg, args)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
msg.reply("There was an error while executing this command! (the error has been logged)")
|
msg.reply("There was an error while executing this command! (the error has been logged)")
|
||||||
|
|
Loading…
Reference in a new issue