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);
|
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);
|
||||||
});
|
});
|
|
@ -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) {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue