Disabled removing commands when bot is going offline

This commit is contained in:
Christer Warén 2021-09-05 04:36:32 +03:00
parent 38af503626
commit 7e3a83743d

View File

@ -35,7 +35,7 @@ module.exports = {
radio = currentRadios.next();
}
const rest = new REST({ version: '9' }).setToken(token);
/*const rest = new REST({ version: '9' }).setToken(token);
if(version.includes("-dev")){
await rest.put(
Routes.applicationCommands(client.user.id),
@ -47,13 +47,13 @@ module.exports = {
try {
await rest.put(
Routes.applicationGuildCommands(client.user.id, guild.id),
{ body: [] },
{ body: [] }
);
} catch (DiscordAPIError) {
}
});
}
}*/
setInterval(() => {
if(radio.done){