Updated public message

This commit is contained in:
dbroqua 2019-12-25 12:51:02 +01:00
parent 4151ab95f8
commit 08b2d46a43
2 changed files with 3 additions and 3 deletions

View file

@ -105,7 +105,7 @@ stream.on('metadata', function (data) {
console.info(`Now playing: ${song}`) console.info(`Now playing: ${song}`)
// Publish song on IRC channel // Publish song on IRC channel
bot.say(process.env.IRC_CHANNEL, `${process.env.RADIO_ALIAS} - ${song}`) bot.say(process.env.IRC_CHANNEL, `${process.env.RADIO_ALIAS} : ${song}`)
// Extract artist = title from song // Extract artist = title from song
const splitted = song.split(' - ') const splitted = song.split(' - ')

View file

@ -72,10 +72,10 @@ class ArtistSong {
} }
if (artist.length > 0) { if (artist.length > 0) {
botSay(where, `Hey ${artist.toString().replace(/,/g, ', ')} ! Y'a ${currentSong.title} ! Monte${artist.length > 1 ? 'z' : ''} le son !`) botSay(where, `${process.env.RADIO_ALIAS} : Hey ${artist.toString().replace(/,/g, ', ')} ! Y'a ${currentSong.title} ! Monte${artist.length > 1 ? 'z' : ''} le son !`)
} }
if (song.length > 0) { if (song.length > 0) {
botSay(where, `Hey ${song.toString().replace(/,/g, ', ')} ! Y'a ${song.title} ! Monte${song.length > 1 ? 'z' : ''} le son !`) botSay(where, `${process.env.RADIO_ALIAS} : Hey ${song.toString().replace(/,/g, ', ')} ! Y'a ${song.title} ! Monte${song.length > 1 ? 'z' : ''} le son !`)
} }
}) })
.catch(err => { .catch(err => {