-
-
Save AllGistsEqual/dd55471632476e24fdfbdc6dbbf689d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Define all the core functions for the bot lifecycle | |
*/ | |
// Load the bot | |
bot.load = function load() { | |
this.log('Connecting...') | |
this.client.login(TOKEN) | |
} | |
// Fired on successful login | |
bot.onConnect = async function onConnect() { | |
this.log(`Logged in as: ${this.client.user.tag} (id: ${this.client.user.id})`) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment