Compare commits

..

1 Commits

Author SHA1 Message Date
6fcc2d35f8 add hacky fix for radio stopping 2020-02-21 00:02:20 -05:00
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ const helpers = ['notnull', 'rfa', 'substack']
const autojoin = ['#anarchybots'] const autojoin = ['#anarchybots']
setInterval(poll, 300000) setInterval(poll, 60000)
const host = process.env.HOST || 'localhost' const host = process.env.HOST || 'localhost'
const port = process.env.PORT || 6667 const port = process.env.PORT || 6667
const nick = process.env.NICK || 'radiobot' const nick = process.env.NICK || 'radiobot'

View File

@ -9,7 +9,7 @@ const getPlaylist = () => {
} }
const poll = () => { const poll = () => {
const { stdout } = spawnSync('mpc', ['current']) const { stdout } = spawnSync('mpc', ['status'])
console.log('testing for radio stop:', stdout.toString()) console.log('testing for radio stop:', stdout.toString())
const nowPlaying = stdout.toString() const nowPlaying = stdout.toString()
if (nowPlaying === playing) spawnSync('mpc', ['next']) if (nowPlaying === playing) spawnSync('mpc', ['next'])