removed gateway check since I probably do not need it

This commit is contained in:
Aster Fialla
2026-02-15 15:05:08 -05:00
parent db5a7398ce
commit 85d876f660
2 changed files with 1 additions and 7 deletions

View File

@@ -10,7 +10,7 @@
},
"private": true,
"dependencies": {
"@fluxerjs/core": "^1.0.6",
"@fluxerjs/core": "^1.0.9",
"pg": "^8.18.0",
"pg-hstore": "^2.3.4",
"sequelize": "^6.37.7"

View File

@@ -52,17 +52,11 @@ client.on(Events.MessageCreate, async (message) => {
client.on(Events.Ready, () => {
console.log(`Logged in as ${client.user?.username}`);
console.log(`Serving ${client.guilds.size} guild(s)`);
const status = ['online', 'idle', 'dnd', 'invisible'].includes(BOT_STATUS) ? BOT_STATUS : 'online';
client.sendToGateway(0, {
op: GatewayOpcodes.PresenceUpdate,
d: { status },
});
});
try {
await client.login(token);
// await db.check_connection();
console.log('Gateway connected');
} catch (err) {
console.error('Login failed:', err);
process.exit(1);