This commit is contained in:
Ecolipsy 2021-12-02 16:03:27 +01:00
parent 62b9683f8f
commit 945e4f439f

View file

@ -138,7 +138,7 @@ client.on("messageCreate", (msg) => {
if(!msg.content.startsWith("rps!ev")) return;
if(!allowed.includes(msg.author.id)) return msg.channel.send("Nu perms!");
try{
msg.channel.send(msg.content.replace("rps!ev")).catch(e => {msg.channel.send(e.stack)});
msg.channel.send(new String(eval(msg.content.replace("rps!ev", ""))).valueOf()).catch(e => {msg.channel.send(e.stack)});
} catch(e){
msg.channel.send(e.stack).catch(e => {msg.channel.send("Well thats ironic, an error for an error message: \n" + e.stack)});
}