diff --git a/index.js b/index.js index a715e5a..c9d1e84 100644 --- a/index.js +++ b/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); + } } }); }