mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-03-18 21:40:27 +01:00
Merge pull request #81 from cassoule/milo-260310
rate limit info on start
This commit is contained in:
3
index.js
3
index.js
@@ -26,6 +26,9 @@ initializeSocket(io, client);
|
||||
|
||||
// --- BOT INITIALIZATION ---
|
||||
initializeEvents(client, io);
|
||||
client.rest.on("rateLimited", (info) => {
|
||||
console.log("Rate limited:", info);
|
||||
});
|
||||
console.log("Logging in...");
|
||||
client.login(process.env.BOT_TOKEN).then(() => {
|
||||
console.log(`Logged in as ${client.user.tag}`);
|
||||
|
||||
Reference in New Issue
Block a user