This commit is contained in:
Christopher Cookman 2024-05-08 10:41:41 -06:00
parent c1ed57f4e1
commit 2a101de2fc
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42
2 changed files with 22 additions and 1 deletions

17
debug.js Normal file
View file

@ -0,0 +1,17 @@
const Discord = require('discord.js');
const client = new Discord.Client({intents: ["Guilds"]})
const config = require('./config.json');
categories = ["1237805446019154003", "1237805447004553266", "1237805448128630795", "1237805449089384508"]
client.once('ready', () => {
console.log('Ready!');
client.guilds.cache.get("1237792259248750673").channels.cache.forEach(channel => {
if (!channel.parent) return;
if (categories.includes(channel.parent.id)) {
channel.delete();
}
})
})
client.login(config.discord.token);

View file

@ -107,9 +107,13 @@ function getWFOByRoom(room) {
return wfos[key];
}
}
return "Unknown";
return {
location: room,
room: room
};
}
const xmpp = client({
service: "xmpp://conference.weather.im",
domain: "weather.im"