From b5bbce6bd71958e840f52fb96955f384cdd8adb8 Mon Sep 17 00:00:00 2001 From: Flummi Date: Fri, 24 Nov 2017 08:15:06 +0100 Subject: [PATCH] . --- src/inc/trigger/lib/sandbox.js | 6 ------ src/inc/trigger/useless_uwe.js | 5 +---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/inc/trigger/lib/sandbox.js b/src/inc/trigger/lib/sandbox.js index 77082b2..af39405 100644 --- a/src/inc/trigger/lib/sandbox.js +++ b/src/inc/trigger/lib/sandbox.js @@ -56,12 +56,6 @@ function sandbox(lang, code) { "Program": "#!/bin/bash\r\n" + code, "Input": "", "CompilerArgs": "" - }, - neofetch: { - "LanguageChoice": "38", - "Program": fs.readFileSync(`${__dirname}/../../../../neofetch`, "utf8"), - "Input": "", - "CompilerArgs": "" } }; diff --git a/src/inc/trigger/useless_uwe.js b/src/inc/trigger/useless_uwe.js index 3a11fd7..9f67b78 100644 --- a/src/inc/trigger/useless_uwe.js +++ b/src/inc/trigger/useless_uwe.js @@ -373,10 +373,7 @@ module.exports = bot => { i++; } if(player !== null) { - let tmp = player.innerHTML.match(/.*, the level (.*?) (.*?)\. Next level in (.*?)\./); - let plevel = tmp[1] - , pclass = tmp[2] - , puntil = tmp[3] + const [, plevel, pclass, puntil] = player.innerHTML.match(/.*, the level (.*?) (.*?)\. Next level in (.*?)\./); e.reply(`([i]${prank} / ${playerlist.length}[/i]) [b]${args[0]}[/b], the [b]${pclass}[/b]: level: ${plevel}, next level in ${puntil}.`); } else