Fixed typo
This commit is contained in:
parent
9e5437f360
commit
0e1ebea121
2 changed files with 15 additions and 15 deletions
|
@ -21,11 +21,11 @@ class ArtistSong {
|
|||
.limit(1)
|
||||
.exec((err, last) => {
|
||||
if (err ||
|
||||
last.length === 0 ||
|
||||
(last[0] !== undefined &&
|
||||
last[0].artist !== value.artist &&
|
||||
last[0].title !== value.title
|
||||
)
|
||||
last.length === 0 ||
|
||||
(last[0] !== undefined &&
|
||||
last[0].artist !== value.artist &&
|
||||
last[0].title !== value.title
|
||||
)
|
||||
) {
|
||||
console.log('Save song!', value)
|
||||
// Previous song was different => save song!
|
||||
|
@ -178,7 +178,7 @@ class ArtistSong {
|
|||
}
|
||||
})
|
||||
} else {
|
||||
botSay(from, `${item.value} n'est dpas dans tes favoris, c'est moche de vieillir...`)
|
||||
botSay(from, `${item.value} n'est pas dans tes favoris, c'est moche de vieillir...`)
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
|
|
18
libs/Help.js
18
libs/Help.js
|
@ -1,6 +1,6 @@
|
|||
|
||||
class Help {
|
||||
static say(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')
|
||||
|
|
Loading…
Reference in a new issue