Merge branch '6-ajouter-un-alias-a-lastday' into 'develop'
@6-ajouter-un-alias-a-lastday Closes #6 See merge request dbroqua/irc-radio-bot!3
This commit is contained in:
commit
b88a776071
5 changed files with 7 additions and 0 deletions
|
@ -141,6 +141,7 @@ class Help {
|
|||
Help.say(say, where, '!stats month <title>')
|
||||
Help.say(say, where, '!stats year <title>')
|
||||
Help.say(say, where, '!stats lastday <title>')
|
||||
Help.say(say, where, '!stats yesterday <title>')
|
||||
Help.say(say, where, '!stats lastweek <title>')
|
||||
Help.say(say, where, '!stats lastmonth <title>')
|
||||
Help.say(say, where, '!stats lastyear <title>')
|
||||
|
@ -160,6 +161,7 @@ class Help {
|
|||
Help.say(say, where, '!when month <title>')
|
||||
Help.say(say, where, '!when year <title>')
|
||||
Help.say(say, where, '!when lastday <title>')
|
||||
Help.say(say, where, '!when yesterday <title>')
|
||||
Help.say(say, where, '!when lastweek <title>')
|
||||
Help.say(say, where, '!when lastmonth <title>')
|
||||
Help.say(say, where, '!when lastyear <title>')
|
||||
|
@ -178,6 +180,7 @@ class Help {
|
|||
Help.say(say, where, '!list month <artist>')
|
||||
Help.say(say, where, '!list year <artist>')
|
||||
Help.say(say, where, '!list lastday <artist>')
|
||||
Help.say(say, where, '!list yesterday <artist>')
|
||||
Help.say(say, where, '!list lastweek <artist>')
|
||||
Help.say(say, where, '!list lastmonth <artist>')
|
||||
Help.say(say, where, '!list lastyear <artist>')
|
||||
|
|
|
@ -30,6 +30,7 @@ class When extends Queries {
|
|||
case 'month':
|
||||
case 'year':
|
||||
case 'lastday':
|
||||
case 'yesterday':
|
||||
case 'lastweek':
|
||||
case 'lastmonth':
|
||||
case 'lastyear':
|
||||
|
|
|
@ -71,6 +71,7 @@ class Queries {
|
|||
}
|
||||
break
|
||||
case 'lastday':
|
||||
case 'yesterday':
|
||||
this.period = {
|
||||
$gte: moment().subtract(1, 'day').startOf('day'),
|
||||
$lte: moment().subtract(1, 'day').endOf('day')
|
||||
|
|
|
@ -30,6 +30,7 @@ class When extends Queries {
|
|||
case 'month':
|
||||
case 'year':
|
||||
case 'lastday':
|
||||
case 'yesterday':
|
||||
case 'lastweek':
|
||||
case 'lastmonth':
|
||||
case 'lastyear':
|
||||
|
|
|
@ -31,6 +31,7 @@ class When extends Queries {
|
|||
case 'month':
|
||||
case 'year':
|
||||
case 'lastday':
|
||||
case 'yesterday':
|
||||
case 'lastweek':
|
||||
case 'lastmonth':
|
||||
case 'lastyear':
|
||||
|
|
Loading…
Reference in a new issue