@@ -207,36 +207,30 @@ export class RepModule extends Module {
207
207
} )
208
208
async leaderboard ( msg : Message , @optional period : string = 'month' ) {
209
209
let periods = {
210
- 'rolling-hour' : [
211
- 'Within the Last Hour' ,
212
- Date . now ( ) - 60 * 60 * 1000 ,
213
- ] ,
214
- 'rolling-day' : [
215
- 'Within the Last 24 Hours' ,
216
- Date . now ( ) - 24 * 60 * 60 * 1000 ,
217
- ] ,
210
+ 'rolling-hour' : [ '(past hour)' , Date . now ( ) - 60 * 60 * 1000 ] ,
211
+ 'rolling-day' : [ '(past day)' , Date . now ( ) - 24 * 60 * 60 * 1000 ] ,
218
212
'rolling-month' : [
219
- 'Within the Last 30 Days ' ,
213
+ '(past 30 days) ' ,
220
214
Date . now ( ) - 30 * 24 * 60 * 60 * 1000 ,
221
215
] ,
222
216
'rolling-year' : [
223
- 'Within the Last Year ' ,
217
+ '(past year) ' ,
224
218
Date . now ( ) - 365 * 24 * 60 * 60 * 1000 ,
225
219
] ,
226
220
day : [
227
- 'Today ' ,
221
+ '(today) ' ,
228
222
+ new Date (
229
223
new Date ( ) . getFullYear ( ) ,
230
224
new Date ( ) . getMonth ( ) ,
231
225
new Date ( ) . getDate ( ) ,
232
226
) ,
233
227
] ,
234
228
month : [
235
- 'This Month ' ,
229
+ '(this month) ' ,
236
230
+ new Date ( new Date ( ) . getFullYear ( ) , new Date ( ) . getMonth ( ) ) ,
237
231
] as const ,
238
- year : [ 'This Year ' , + new Date ( new Date ( ) . getFullYear ( ) ) ] ,
239
- all : [ 'All-Time ' , 0 ] ,
232
+ year : [ '(this year) ' , + new Date ( new Date ( ) . getFullYear ( ) ) ] ,
233
+ all : [ '(all time) ' , 0 ] ,
240
234
} as const ;
241
235
if ( ! ( period in periods ) )
242
236
return await sendWithMessageOwnership (
0 commit comments