forked from ChrisChrome/weather-bot
Funny
This commit is contained in:
parent
c1ed57f4e1
commit
2a101de2fc
17
debug.js
Normal file
17
debug.js
Normal 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);
|
6
index.js
6
index.js
|
@ -107,9 +107,13 @@ function getWFOByRoom(room) {
|
||||||
return wfos[key];
|
return wfos[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "Unknown";
|
return {
|
||||||
|
location: room,
|
||||||
|
room: room
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const xmpp = client({
|
const xmpp = client({
|
||||||
service: "xmpp://conference.weather.im",
|
service: "xmpp://conference.weather.im",
|
||||||
domain: "weather.im"
|
domain: "weather.im"
|
||||||
|
|
Loading…
Reference in a new issue