From 83b4f485fa157b02c83d11589b428558dac1e1c3 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Tue, 3 Oct 2023 10:00:02 +1100 Subject: [PATCH] Block `redis_uri` from eval --- src/commands/dev.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/dev.ts b/src/commands/dev.ts index 47d721a..a6aacaf 100644 --- a/src/commands/dev.ts +++ b/src/commands/dev.ts @@ -38,7 +38,7 @@ export default { else output = '\n' + String(output); [ client.tokens.main,client.tokens.beta,client.tokens.toast,client.tokens.spotify.client,client.tokens.spotify.secret, - client.tokens.mongodb_uri,client.tokens.mongodb_uri_dev,client.tokens.octokit + client.tokens.mongodb_uri,client.tokens.mongodb_uri_dev,client.tokens.octokit,client.tokens.redis_uri ].forEach(x=>output = output.replace(new RegExp(x as string,'g'),':noblank: No token?')); const embed = new client.embed().setColor(client.config.embedColor).setTitle('__Eval__').addFields( {name: 'Input', value: `\`\`\`js\n${code.slice(0,1010)}\n\`\`\``},