Skip to content

Commit ef6965b

Browse files
committed
fix as consts in leaderboard command
1 parent 0960c7a commit ef6965b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/modules/rep.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,11 @@ export class RepModule extends Module {
210210
'rolling-hour': [
211211
'Within the Last Hour',
212212
Date.now() - 60 * 60 * 1000,
213-
] as const,
213+
],
214214
'rolling-day': [
215215
'Within the Last 24 Hours',
216216
Date.now() - 24 * 60 * 60 * 1000,
217-
] as const,
217+
],
218218
'rolling-month': [
219219
'Within the Last 30 Days',
220220
Date.now() - 30 * 24 * 60 * 60 * 1000,
@@ -230,14 +230,14 @@ export class RepModule extends Module {
230230
new Date().getMonth(),
231231
new Date().getDate(),
232232
),
233-
] as const,
233+
],
234234
month: [
235235
'This Month',
236236
+new Date(new Date().getFullYear(), new Date().getMonth()),
237237
] as const,
238-
year: ['This Year', +new Date(new Date().getFullYear())] as const,
239-
all: ['All-Time', 0] as const,
240-
};
238+
year: ['This Year', +new Date(new Date().getFullYear())],
239+
all: ['All-Time', 0],
240+
} as const;
241241
if (!(period in periods))
242242
return await sendWithMessageOwnership(
243243
msg,

0 commit comments

Comments
 (0)