Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Created January 25, 2021 21:29
Show Gist options
  • Save AllGistsEqual/dd55471632476e24fdfbdc6dbbf689d5 to your computer and use it in GitHub Desktop.
Save AllGistsEqual/dd55471632476e24fdfbdc6dbbf689d5 to your computer and use it in GitHub Desktop.
/*
* 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