mirror of
https://github.com/nx-bat/synapse.git
synced 2026-09-22 06:19:05 -04:00
(dev): // ---------- my beloved.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { Event, CommandClient } from 'athena-prime';
|
||||
import tasks from '../../tasks';
|
||||
|
||||
// ----------
|
||||
|
||||
class ReadyEvent extends Event<CommandClient> {
|
||||
event: string = 'ready' as const;
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ import messageCreate from './message/messageCreate';
|
||||
import messageUpdate from './message/messageUpdate';
|
||||
import ready from './client/ready';
|
||||
|
||||
// ----------
|
||||
|
||||
export default [
|
||||
guildCreate,
|
||||
messageCreate,
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { CommandClient, Event, Message } from "athena-prime";
|
||||
import { database } from "../../utils";
|
||||
|
||||
// ----------
|
||||
|
||||
class MessageCreateEvent extends Event<CommandClient> {
|
||||
event: string = 'messageCreate' as const;
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { CommandClient, Event, Message } from "athena-prime";
|
||||
import { database } from "../../utils";
|
||||
|
||||
// ----------
|
||||
|
||||
class MessageUpdateEvent extends Event<CommandClient> {
|
||||
event: string = 'messageUpdate' as const;
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ import { CommandClient } from "athena-prime";
|
||||
import { Task } from "../types/tasks";
|
||||
import { database } from '../utils';
|
||||
|
||||
// ----------
|
||||
|
||||
class DeleteExpiredConfigsTask implements Task {
|
||||
interval: number = 3_600_000;
|
||||
init: boolean = true;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import deleteExpiredConfigs from "./deleteExpiredConfigs";
|
||||
|
||||
// ----------
|
||||
|
||||
export default [
|
||||
deleteExpiredConfigs
|
||||
];
|
||||
|
||||
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
// --- Guild Configuration ---
|
||||
|
||||
export type Configuration = {
|
||||
admin?: AdminConfiguration;
|
||||
censor?: CensorConfiguration;
|
||||
|
||||
Reference in New Issue
Block a user