This commit is contained in:
Flummi 2016-10-29 06:08:51 +02:00
parent 697fe17bc6
commit b67cecbb45

View File

@ -2,12 +2,12 @@ var safeEval = require('safe-eval');
module.exports = (lib) => { module.exports = (lib) => {
lib.trigger.add({ lib.trigger.add({
name: 'bot debug', name: 'sandbox',
call: /^\!bot (.*)/i, call: /^\!js (.*)/i,
level: 100, level: 100,
active: 1, active: 1,
func: (e) => { func: (e) => {
var args = e.message.match(/^\!bot (.*)/i)[1]; var args = e.message.match(/^\!js (.*)/i)[1];
var context = { var context = {
bot: lib.bot, bot: lib.bot,
e: e e: e
@ -21,6 +21,6 @@ module.exports = (lib) => {
e.reply('f0ck you!'); e.reply('f0ck you!');
} }
}, },
desc: 'bot debug' desc: 'sandbox'
}); });
}; };