mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-09-22 02:19:09 -04:00
(tasks): Linting.
This commit is contained in:
@@ -6,10 +6,10 @@ const task: Task = {
|
||||
id: 'checkExpiredBans',
|
||||
interval: 300000,
|
||||
firstRun: true,
|
||||
|
||||
|
||||
handle: async (context: Client) => {
|
||||
await checkExpiredBans(context);
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
export default task;
|
||||
@@ -6,7 +6,7 @@ const task: Task = {
|
||||
id: 'closeStaleTickets',
|
||||
interval: 3.6e6,
|
||||
firstRun: true,
|
||||
|
||||
|
||||
handle: async (context: Client) => {
|
||||
await closeOldTickets(context);
|
||||
},
|
||||
|
||||
@@ -6,10 +6,10 @@ const task: Task = {
|
||||
id: 'pruneOldMessages',
|
||||
interval: 3.6e6,
|
||||
firstRun: true,
|
||||
|
||||
|
||||
handle: async (context: Client) => {
|
||||
await Database.pruneOldMessages();
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
export default task;
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { Client } from "discord.js";
|
||||
import { Client } from 'discord.js';
|
||||
|
||||
export interface Task {
|
||||
id: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { APIEmbed, Client } from 'discord.js';
|
||||
|
||||
type EmbedSeverity =
|
||||
| 'info'
|
||||
type EmbedSeverity
|
||||
= | 'info'
|
||||
| 'warning'
|
||||
| 'error'
|
||||
| 'success'
|
||||
|
||||
Reference in New Issue
Block a user