feat: initial app prototype

This commit is contained in:
2025-01-20 18:36:05 -08:00
parent 3abc3e3272
commit d7cd3ffaab
21 changed files with 5187 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import type { PrismaClient, Sanctions } from "@prisma/client";
import type { Client } from "discord.js";
export interface App {
discord: Client;
database: PrismaClient;
sanctions: Array<Sanctions>;
cacheUpdated: Date;
}
+15
View File
@@ -0,0 +1,15 @@
/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import type { App } from "./app.js";
import type {
ChatInputCommandInteraction,
SlashCommandOptionsOnlyBuilder,
} from "discord.js";
export interface Command {
data: SlashCommandOptionsOnlyBuilder;
run: (app: App, interaction: ChatInputCommandInteraction)=> Promise<void>;
}