Cleanup on bot start

This commit is contained in:
2022-11-25 18:28:42 +01:00
parent d9c81ef3f2
commit 8b72326419
3 changed files with 48 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import { runCleanup } from "../service";
import client from "./index";
const token = process.env["TOKEN"];
@ -7,4 +8,6 @@ client.login(token);
client.on("ready", () => {
console.log(`Connected to Discord API. Bot account is ${client.user?.tag} (${client.user?.id})`);
runCleanup();
});