clean for each restart

This commit is contained in:
Louis Mazin 2026-01-29 13:11:54 +01:00
parent 2f11029b66
commit 4a4771c60b

View File

@ -70,6 +70,7 @@ client.once('ready', async () => {
}
deploy(process.env.DISCORD_TOKEN);
clean(client);
});
client.on(Events.InteractionCreate, async interaction => {
@ -112,5 +113,4 @@ client.on(Events.InteractionCreate, async interaction => {
client.login(process.env.DISCORD_TOKEN);
setInterval(()=>{update(headers,numbers,client,process.env.PALWORLD_API_TOKEN)}, 300000);
setInterval(()=>{clean(client)}, 86400000);
setInterval(()=>{update(headers,numbers,client,process.env.PALWORLD_API_TOKEN)}, 300000);