added fetch to debugnamespace

This commit is contained in:
Flummi 2018-11-26 13:27:42 +00:00
parent 323e51ece6
commit 4f17dda86a

View File

@ -1,4 +1,5 @@
import { admins, getLevel } from "../admin"; import { admins, getLevel } from "../admin";
import fetch from "../fetch";
import vm from "vm"; import vm from "vm";
@ -7,6 +8,7 @@ let context = vm.createContext({
e: null, e: null,
bot: null, bot: null,
admins: null, admins: null,
fetch: fetch
}); });
export default bot => { export default bot => {
bot._trigger.set("sandbox_debug", new bot.trigger({ bot._trigger.set("sandbox_debug", new bot.trigger({