handle bot error
This commit is contained in:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user