From c7655bf6c92c32d8e0c918b87d48bbcba9c452aa Mon Sep 17 00:00:00 2001 From: dbroqua Date: Fri, 24 Jan 2020 09:56:38 +0100 Subject: [PATCH] Fixed bug --- libs/Help.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libs/Help.js b/libs/Help.js index 7ef6017..f3fed22 100644 --- a/libs/Help.js +++ b/libs/Help.js @@ -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 ') @@ -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')