This commit is contained in:
Flummi 2016-10-29 05:35:11 +02:00
parent a0cf04a326
commit b32d5e8a5c

View File

@ -2,7 +2,7 @@ const util = require('util');
const vm = require('vm'); const vm = require('vm');
module.exports = (lib) => { module.exports = (lib) => {
const sandbox = { var sandbox = {
bot: lib.bot, bot: lib.bot,
output: "nothing", output: "nothing",
e: null e: null
@ -10,11 +10,11 @@ module.exports = (lib) => {
lib.trigger.add({ lib.trigger.add({
name: 'bot debug', name: 'bot debug',
call: /^!bot (.*)/i, call: /^\!bot (.*)/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(/^\!bot (.*)/i)[1];
e.reply(args); e.reply(args);
sandbox.e = e; sandbox.e = e;