Compare commits
1 Commits
6c7dbbe251
...
6fcc2d35f8
Author | SHA1 | Date | |
---|---|---|---|
6fcc2d35f8 |
@ -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'
|
||||||
|
@ -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'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user