GUH!!!!!?!?!?!?!?!?

This commit is contained in:
Christopher Cookman 2023-05-19 19:10:08 -06:00
parent ae7ffda852
commit eafc323803
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -272,15 +272,13 @@ client.on("ready", async () => {
config.stormworks.servers.forEach((server) => { config.stormworks.servers.forEach((server) => {
client.channels.fetch(server.channelId).then((channel) => { client.channels.fetch(server.channelId).then((channel) => {
channel.messages.fetch(server.messageId).then((message) => { channel.messages.fetch(server.messageId).then((message) => {
updateTimers.push(setInterval(() => {
updateStatus(server.ip, server.port, message);
}))
});
});
});
setInterval(() => { setInterval(() => {
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${updateTimers}`); console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${server.ip}:${server.port}`);
}, 1000) updateStatus(server.ip, server.port, message);
}, 10000);
});
});
});
// client.channels.fetch("1108126926045986856").then((channel) => { // client.channels.fetch("1108126926045986856").then((channel) => {
// channel.messages.fetch("1108860190935232592").then((message) => { // channel.messages.fetch("1108860190935232592").then((message) => {
// message.edit("UwU") // message.edit("UwU")
@ -324,7 +322,6 @@ process.on('SIGINT', async () => {
var serverEmbeds = {}; var serverEmbeds = {};
var serverStatus = {}; var serverStatus = {};
var updateTimers = [];
console.log(`${colors.cyan("[INFO]")} Starting...`) console.log(`${colors.cyan("[INFO]")} Starting...`)
// Start timer to see how long startup takes // Start timer to see how long startup takes