Compare commits

..

1 Commits

Author SHA1 Message Date
6c7dbbe251 add hacky fix for radio stopping 2020-02-20 23:52:41 -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, 60000) setInterval(poll, 300000)
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', ['status']) const { stdout } = spawnSync('mpc', ['current'])
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'])