2022-11-25 18:28:42 +01:00
|
|
|
import { runCleanup } from "../service";
|
2022-11-24 12:12:50 +01:00
|
|
|
import client from "./index";
|
|
|
|
|
|
|
|
const token = process.env["TOKEN"];
|
|
|
|
if (!token) throw new ReferenceError("TOKEN environment variable is missing");
|
|
|
|
|
|
|
|
client.login(token);
|
|
|
|
|
|
|
|
client.on("ready", () => {
|
|
|
|
console.log(`Connected to Discord API. Bot account is ${client.user?.tag} (${client.user?.id})`);
|
2022-11-25 18:28:42 +01:00
|
|
|
|
|
|
|
runCleanup();
|
2022-11-24 12:12:50 +01:00
|
|
|
});
|