handle bot error

This commit is contained in:
Lamp 2024-11-02 16:06:37 -07:00
parent 58c92991eb
commit c9d312d78f

@ -6,6 +6,10 @@ var bot = new Bot({
emitEvents: false,
emitChatEvents: true
});
bot.on("error", error => {
console.error("bot error", error);
});
await bot.login({
identifier: process.env.IDENTIFIER,
password: process.env.PASSWORD