@6-ajouter-un-alias-a-lastday #13
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 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>')
|
||||||
|
|
|
@ -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':
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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':
|
||||||
|
|
|
@ -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':
|
||||||
|
|
Loading…
Reference in a new issue