Fix some stuff

This commit is contained in:
Ecolipsy 2021-12-02 18:27:19 +01:00
parent 16d78b39d1
commit 07a69fa010

View file

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