src/index.js
// Do the rest of it in fancy es2017
Do the rest of it in fancy es2017
Do the rest of it in fancy es2017
async function init () {
	readySpinner.text = log.ok.color("Loading: Commands initializing...")
	const commands = require(path.join(__dirname, "commands.js"))(client)
	readySpinner.succeed(log.ok.color(`Loading: ${commands} commands loaded!`))
	readySpinner.start(log.ok.color("Loading: Loading Amped playlists..."))
	AmpedJSON = require(path.join(__dirname, "playlist_loader.js"))()
	readySpinner.succeed(log.ok.color(`Loading: ${Object.keys(AmpedJSON).length} playlists loaded!`))
	client.on("ready", () => {
		readySpinner.succeed(log.ok.color("Loading complete!"))
		log.ok.timecode(`Client connected to Discord! -- ${client.user.username}#${client.user.discriminator}`)
	})
	readySpinner.start(log.ok.color("Loading: Waiting for Discord Connection..."))
	client.login(config.token)
}
async function init ( ) { readySpinner . text = log . ok . color ( "Loading: Commands initializing..." ) const commands = require ( path . join ( __dirname , "commands.js" ) ) ( client ) readySpinner . succeed ( log . ok . color ( ` ${ commands } ` ) ) readySpinner . start ( log . ok . color ( "Loading: Loading Amped playlists..." ) ) AmpedJSON = require ( path . join ( __dirname , "playlist_loader.js" ) ) ( ) readySpinner . succeed ( log . ok . color ( ` ${ Object . keys ( AmpedJSON ) . length } ` ) ) client . on ( "ready" , ( ) => { readySpinner . succeed ( log . ok . color ( "Loading complete!" ) ) log . ok . timecode ( ` ${ client . user . username } ${ client . user . discriminator } ` ) } ) readySpinner . start ( log . ok . color ( "Loading: Waiting for Discord Connection..." ) ) client . login ( config . token ) }
Do the rest of it in fancy es2017
Do the rest of it in fancy es2017
// Load up our command parsing library // This is a true global (I know, ugly)