From 42405dd268644c0b34250f3ddf838b47d49e57ce Mon Sep 17 00:00:00 2001 From: Kira Date: Sat, 20 Dec 2025 07:11:23 -0500 Subject: [PATCH] eval was funny but the bit is stale, this commit can always be reverted though --- index.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/index.js b/index.js index f473df3..2c3e461 100644 --- a/index.js +++ b/index.js @@ -82,25 +82,6 @@ client.on(Events.MessageCreate, message => { ) } - // hehe an eval :3 - if (message.content.startsWith('!eval') && config.parentsAndOrGuardians.includes(message.author.id)) { - let code = message.content.substring('!eval'.length).trim(); - - // yeah a machine may have wrote this part - const codeBlockRegex = /```(?:js)?\n?([\s\S]+)```/; - const match = code.match(codeBlockRegex); - - if (match) { - code = match[1]; - } - - try { - eval(code); - } catch (err) { - console.error(err); - } - } - // hehe we do a little if stacking if (message.content.startsWith('!status') && config.parentsAndOrGuardians.includes(message.author.id)) { let status = message.content.substring('!status'.length).trim(); client.user.setActivity(status, { type: ActivityType.Custom });