diff --git a/index.js b/index.js index 2ea3111..5acbef0 100644 --- a/index.js +++ b/index.js @@ -193,6 +193,9 @@ const actions = (where, message, from) => { case '!notifications': preferences.notifications(botSay, where, from, exploded) break + case '!stream': + botSay(where, `${process.env.RADIO_ALIAS} : ${process.env.PUBLIC_RADIO_STREAM}`) + break default: break } diff --git a/libs/Help.js b/libs/Help.js index 6fffc61..3170aba 100644 --- a/libs/Help.js +++ b/libs/Help.js @@ -25,6 +25,9 @@ class Help { case '!notifications': Help.showNotifications(say, where) break + case '!stream': + Help.showStream(say, where) + break default: break } @@ -37,10 +40,22 @@ class Help { say(where, '!list ') say(where, '!help {command}') say(where, '!notifications ') + say(where, '!stream') } say(where, '__ END __') } + /** + * Fonction affichant l'aide sur la commande !stream + * @param {Function} say + * @param {String} where + * @param {Array} args + */ + static showStream (say, where, args) { + say(where, 'IRC Radio Bot :: Stream') + say(where, '!stream < Affiche l\'url du flux radio pour ton player favoris') + } + /** * Fonction affichant l'aide sur les commandes !artist et !song * @param {Function} say