Added !list command
This commit is contained in:
parent
ef694b116f
commit
5a15cdf7b4
8 changed files with 211 additions and 77 deletions
28
libs/Help.js
28
libs/Help.js
|
@ -19,6 +19,9 @@ class Help {
|
|||
case '!when':
|
||||
Help.showWhen(say, where)
|
||||
break
|
||||
case '!list':
|
||||
Help.showList(say, where)
|
||||
break
|
||||
case '!notifications':
|
||||
Help.showNotifications(say, where)
|
||||
break
|
||||
|
@ -29,9 +32,10 @@ class Help {
|
|||
say(where, 'IRC Radio Bot :: Help')
|
||||
say(where, '!artist <add/del> {nom à sauvegarder si différent du morceau en cours}')
|
||||
say(where, '!song <add/del> {nom à sauvegarder si différent du morceau en cours}')
|
||||
say(where, '!stats <day/week/lastweek/month/lastmonth/year/lastyear> <artist/song>')
|
||||
say(where, '!when <day/week/lastweek/month/lastmonth/year/lastyear> <artist/song>')
|
||||
say(where, '!help {!artist/!song/!stats/!when}')
|
||||
say(where, '!stats <period> <artist/song>')
|
||||
say(where, '!when <period> <artist/song>')
|
||||
say(where, '!list <period> <artist/song>')
|
||||
say(where, '!help {command}')
|
||||
say(where, '!notifications <on/off/state>')
|
||||
}
|
||||
say(where, '__ END __')
|
||||
|
@ -85,6 +89,24 @@ class Help {
|
|||
say(where, '!when lastyear <title>')
|
||||
}
|
||||
|
||||
/**
|
||||
* Fonction affichant l'aide sur la commande !list
|
||||
* @param {Function} say
|
||||
* @param {String} where
|
||||
*/
|
||||
static showList (say, where) {
|
||||
say(where, 'IRC Radio Bot :: List')
|
||||
say(where, 'Permet d\'afficher la liste des titres joués pour un artiste sr une période donnée')
|
||||
say(where, '!list day <artist>')
|
||||
say(where, '!list week <artist>')
|
||||
say(where, '!list month <artist>')
|
||||
say(where, '!list year <artist>')
|
||||
say(where, '!list lastday <artist>')
|
||||
say(where, '!list lastweek <artist>')
|
||||
say(where, '!list lastmonth <artist>')
|
||||
say(where, '!list lastyear <artist>')
|
||||
}
|
||||
|
||||
/**
|
||||
* Fonction affichant l'aide sur la commande !notifications
|
||||
* @param {Function} say
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue