fix bruhs

This commit is contained in:
Lamp 2022-01-03 23:00:36 -08:00
parent 7fe2b0fa12
commit e8b4334e3a
3 changed files with 5 additions and 5 deletions

View File

@ -12,10 +12,10 @@ global.commands = [
]; ];
client.on("interactionCreate", interaction => { dClient.on("interactionCreate", interaction => {
commands.find(x => x.name == interaction.commandName)?.exec?.(interaction); commands.find(x => x.name == interaction.commandName)?.exec?.(interaction);
}); });
client.once("ready", () => { dClient.once("ready", () => {
client.guilds.resolve(config.guildID)?.commands.set(commands); dClient.guilds.resolve(config.guildID)?.commands.set(commands);
}); });

View File

@ -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.author.id != config.opID) return;
if (message.content.startsWith("!>")) { if (message.content.startsWith("!>")) {
with (message) { with (message) {

View File

@ -205,7 +205,7 @@ global.createMPPbridge = async function createMPPbridge({room, channel, uri}) {
// start // start
client.once("ready", async function () { dClient.once("ready", async function () {
global.bridges = require("./bridges"); global.bridges = require("./bridges");
for (let bridge of bridges) { for (let bridge of bridges) {
try { try {