Ban command
This commit is contained in:
@@ -1 +1,9 @@
|
||||
export const ticketCooldownMap = new Map<string, number>();
|
||||
export const ticketCooldownMap = new Map<string, number>();
|
||||
|
||||
export function pruneOldTickets() {
|
||||
const keys = Array.from(ticketCooldownMap.keys());
|
||||
for (const key of keys) {
|
||||
if (Date.now() >= ticketCooldownMap.get(key)!)
|
||||
ticketCooldownMap.delete(key);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user