diff --git a/commands.js b/commands.js index 4777a11..97e7e5a 100644 --- a/commands.js +++ b/commands.js @@ -12,10 +12,10 @@ global.commands = [ ]; -client.on("interactionCreate", interaction => { +dClient.on("interactionCreate", interaction => { commands.find(x => x.name == interaction.commandName)?.exec?.(interaction); }); -client.once("ready", () => { - client.guilds.resolve(config.guildID)?.commands.set(commands); +dClient.once("ready", () => { + dClient.guilds.resolve(config.guildID)?.commands.set(commands); }); \ No newline at end of file diff --git a/eval-exec.js b/eval-exec.js index 7a46eb8..872a5d6 100644 --- a/eval-exec.js +++ b/eval-exec.js @@ -1,5 +1,5 @@ -client.on("messageCreate", async function (message) { +dClient.on("messageCreate", async function (message) { if (message.author.id != config.opID) return; if (message.content.startsWith("!>")) { with (message) { diff --git a/mppbridger.js b/mppbridger.js index 3192f27..cb143e8 100644 --- a/mppbridger.js +++ b/mppbridger.js @@ -205,7 +205,7 @@ global.createMPPbridge = async function createMPPbridge({room, channel, uri}) { // start -client.once("ready", async function () { +dClient.once("ready", async function () { global.bridges = require("./bridges"); for (let bridge of bridges) { try {