Fix some stuff
This commit is contained in:
parent
16d78b39d1
commit
07a69fa010
5
index.js
5
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);
|
||||
try{
|
||||
cmd.execute(msg, args);
|
||||
} catch(e){
|
||||
msg.channel.send("Nope, check console");
|
||||
console.log(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue