fix bruhs
This commit is contained in:
parent
7fe2b0fa12
commit
e8b4334e3a
|
@ -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);
|
||||
});
|
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue