Fixed bug

This commit is contained in:
dbroqua 2020-01-24 09:56:38 +01:00
parent 4020faec13
commit c7655bf6c9

View file

@ -1,6 +1,6 @@
class Help {
static helpSay (say, where, message) {
static say(say, where, message) {
say(where, message, true, true)
}
@ -11,7 +11,7 @@ class Help {
* @param {Array} args
* @param {Array} allowedCmds
*/
static show (say, where, args, allowedCmds) {
static show(say, where, args, allowedCmds) {
if (args.length > 2) {
switch (args[2]) {
case '!artist':
@ -96,7 +96,7 @@ class Help {
* @param {String} where
* @param {Array} args
*/
static showStream (say, where, args) {
static showStream(say, where, args) {
Help.say(say, where, 'IRC Radio Bot :: Stream', false, true)
Help.say(say, where, 'Affiche l\'url du flux radio pour ton player favoris', false, true)
Help.say(say, where, '!stream')
@ -108,7 +108,7 @@ class Help {
* @param {String} where
* @param {Array} args
*/
static showMute (say, where, args) {
static showMute(say, where, args) {
Help.say(say, where, 'IRC Radio Bot :: Mute')
Help.say(say, where, 'Permet d\'activer ou de désactiver les messages publics du bot')
Help.say(say, where, '!mute on')
@ -122,7 +122,7 @@ class Help {
* @param {String} where
* @param {Array} args
*/
static showArtistSong (say, where, args) {
static showArtistSong(say, where, args) {
Help.say(say, where, 'IRC Radio Bot :: Artist/Song')
Help.say(say, where, `${args[2]} add {[facultatif] nom} < Permet de rajouter une notification sur ${args[2] === '!artist' ? 'cet artiste' : 'ce morceau'}`)
Help.say(say, where, `${args[2]} del {[facultatif] nom} < Permet de supprimer une notification sur ${args[2] === '!artist' ? 'cet artiste' : 'ce morceau'}`)
@ -133,7 +133,7 @@ class Help {
* @param {Function} say
* @param {String} where
*/
static showStats (say, where) {
static showStats(say, where) {
Help.say(say, where, 'IRC Radio Bot :: Stats')
Help.say(say, where, 'Permet d\'afficher le nombre de passage à l\'antenne d\'un artiste/morceau sur une période donnée')
Help.say(say, where, '!stats day <title>')
@ -153,7 +153,7 @@ class Help {
* @param {Function} say
* @param {String} where
*/
static showWhen (say, where) {
static showWhen(say, where) {
Help.say(say, where, 'IRC Radio Bot :: When')
Help.say(say, where, 'Permet d\'afficher la dernier passage d\'un artiste/morceau sur une période donnée')
Help.say(say, where, '!when day <title>')
@ -172,7 +172,7 @@ class Help {
* @param {Function} say
* @param {String} where
*/
static showList (say, where) {
static showList(say, where) {
Help.say(say, where, 'IRC Radio Bot :: List')
Help.say(say, where, 'Permet d\'afficher la liste des titres joués pour un artiste sr une période donnée')
Help.say(say, where, '!list day <artist>')
@ -191,7 +191,7 @@ class Help {
* @param {Function} say
* @param {String} where
*/
static showNotifications (say, where) {
static showNotifications(say, where) {
Help.say(say, where, 'IRC Radio Bot :: Notifications')
Help.say(say, where, 'Permet d\'activer et de désactiver les notifications pour soit')
Help.say(say, where, '!notifications off')