edited bot to have top level main function

This commit is contained in:
Aster Fialla
2026-02-24 16:18:40 -05:00
parent 8b8cdd6d12
commit 2bf218683a
2 changed files with 14 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ function printGuilds() {
const debouncePrintGuilds = utils.debounce(printGuilds, 2000);
export const debounceLogin = utils.debounce(client.login, 60000);
(async () => {
export const login = async function() {
try {
await client.login(token);
// await db.check_connection();
@@ -90,4 +90,11 @@ export const debounceLogin = utils.debounce(client.login, 60000);
console.error('Login failed:', err);
process.exit(1);
}
})();
}
function main()
{
login();
}
main();