export default { timeout: undefined, noWebpack() { if (!window.webpackChunkdiscord_app) { return true } else if (window.webpackChunkdiscord_app?.length < 56) { return true } return false }, async start() { console.log("Starting attempts to load Demoncord...") const text = await (await fetch("https://cors.ruthenic.com/https://git.ruthenic.com/Demon/demoncord-builds/raw/branch/master/build.js", {cache: "no-store"})).text() this.timeout = setInterval(() => this.inject(text), 1e3) }, inject(code) { if (this.noWebpack()) { return } eval(code) demon.summon("utils/logger").log(["Kernel"], "Started Demoncord!") clearInterval(this.timeout) }, stop() { demon.summon("utils/logger").log(["Kernel"], "Uninjecting is overrated!") }, };