@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

View file

@ -141,6 +141,7 @@ class Help {
Help.say(say, where, '!stats month <title>') Help.say(say, where, '!stats month <title>')
Help.say(say, where, '!stats year <title>') Help.say(say, where, '!stats year <title>')
Help.say(say, where, '!stats lastday <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 lastweek <title>')
Help.say(say, where, '!stats lastmonth <title>') Help.say(say, where, '!stats lastmonth <title>')
Help.say(say, where, '!stats lastyear <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 month <title>')
Help.say(say, where, '!when year <title>') Help.say(say, where, '!when year <title>')
Help.say(say, where, '!when lastday <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 lastweek <title>')
Help.say(say, where, '!when lastmonth <title>') Help.say(say, where, '!when lastmonth <title>')
Help.say(say, where, '!when lastyear <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 month <artist>')
Help.say(say, where, '!list year <artist>') Help.say(say, where, '!list year <artist>')
Help.say(say, where, '!list lastday <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 lastweek <artist>')
Help.say(say, where, '!list lastmonth <artist>') Help.say(say, where, '!list lastmonth <artist>')
Help.say(say, where, '!list lastyear <artist>') Help.say(say, where, '!list lastyear <artist>')

View file

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

View file

@ -71,6 +71,7 @@ class Queries {
} }
break break
case 'lastday': case 'lastday':
case 'yesterday':
this.period = { this.period = {
$gte: moment().subtract(1, 'day').startOf('day'), $gte: moment().subtract(1, 'day').startOf('day'),
$lte: moment().subtract(1, 'day').endOf('day') $lte: moment().subtract(1, 'day').endOf('day')

View file

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

View file

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