@6-ajouter-un-alias-a-lastday #13

Merged
dbroqua merged 1 commit from 6-ajouter-un-alias-a-lastday into develop 2020-01-13 14:28:10 +01:00
5 changed files with 7 additions and 0 deletions
Showing only changes of commit 688c5a8858 - Show all commits

View file

@ -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>')

View file

@ -30,6 +30,7 @@ class When extends Queries {
case 'month':
case 'year':
case 'lastday':
case 'yesterday':
case 'lastweek':
case 'lastmonth':
case 'lastyear':

View file

@ -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')

View file

@ -30,6 +30,7 @@ class When extends Queries {
case 'month':
case 'year':
case 'lastday':
case 'yesterday':
case 'lastweek':
case 'lastmonth':
case 'lastyear':

View file

@ -31,6 +31,7 @@ class When extends Queries {
case 'month':
case 'year':
case 'lastday':
case 'yesterday':
case 'lastweek':
case 'lastmonth':
case 'lastyear':