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