clean for each restart
This commit is contained in:
parent
2f11029b66
commit
4a4771c60b
2
index.js
2
index.js
@ -70,6 +70,7 @@ client.once('ready', async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deploy(process.env.DISCORD_TOKEN);
|
deploy(process.env.DISCORD_TOKEN);
|
||||||
|
clean(client);
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on(Events.InteractionCreate, async interaction => {
|
client.on(Events.InteractionCreate, async interaction => {
|
||||||
@ -113,4 +114,3 @@ client.on(Events.InteractionCreate, async interaction => {
|
|||||||
client.login(process.env.DISCORD_TOKEN);
|
client.login(process.env.DISCORD_TOKEN);
|
||||||
|
|
||||||
setInterval(()=>{update(headers,numbers,client,process.env.PALWORLD_API_TOKEN)}, 300000);
|
setInterval(()=>{update(headers,numbers,client,process.env.PALWORLD_API_TOKEN)}, 300000);
|
||||||
setInterval(()=>{clean(client)}, 86400000);
|
|
||||||
Loading…
x
Reference in New Issue
Block a user