Fix some stuff
This commit is contained in:
parent
16d78b39d1
commit
07a69fa010
1 changed files with 6 additions and 1 deletions
7
index.js
7
index.js
|
@ -186,7 +186,12 @@ client.on("messageCreate", (msg) => {
|
|||
msg.content = msg.content.replace("rps!ju " + cmd.name, "ju!" + cmd.name);
|
||||
const args = msg.content.slice("ju!".length).trim().split(/ +/);
|
||||
console.log("Content: %s, args: %s", msg.content, args);
|
||||
cmd.execute(msg, args);
|
||||
try{
|
||||
cmd.execute(msg, args);
|
||||
} catch(e){
|
||||
msg.channel.send("Nope, check console");
|
||||
console.log(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue