Skip to content

Commit

Permalink
Improve startup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
acdvs committed Jul 26, 2020
1 parent 47983de commit 5498d7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ let settings = settingsUtil.DEFAULT_SETTINGS;
// Start bot
// =========================

bot.login(process.env.BOT_TOKEN);
bot.login(process.env.BOT_TOKEN)
.then(() => console.log(`${bot.user.username} logged in`))
.catch(err => console.error(err));

bot.on('ready', async () => {
console.log(bot.user.username + ' successfully started');
console.log(`${bot.user.username} successfully started`);

bot.user.setPresence({ activity: { type: 'WATCHING', name: `for ${C_DEALS}` }});

Expand Down

0 comments on commit 5498d7f

Please sign in to comment.