added environment variables

This commit is contained in:
notnull 2019-12-05 05:18:48 -05:00
parent 3712511d7d
commit 0c8f421e36

View File

@ -6,12 +6,12 @@ const { searchTrack, requestTrack } = require('./spotify')
const chalk = require('chalk')
const owners = ['notnull']
const host = 'irc.anarchyplanet.org'
const port = 6667
const nick = 'radiobot'
const autojoin = ['#anarchybots']
const host = process.env.HOST || localhost
const port = process.env.PORT || 6667
const nick = process.env.NICK || 'radiobot'
console.log(chalk.magenta('\n***********************************\n'))
console.log(chalk.magenta(`Connecting to ${host}\n`))
console.log(chalk.magenta('***********************************\n'))