feat: migrate away from trello (#2)

Closes #1

Reviewed-on: https://codeberg.org/nhcarrigan/a4p-bot/pulls/2
Co-authored-by: Naomi <commits@nhcarrigan.com>
Co-committed-by: Naomi <commits@nhcarrigan.com>
This commit is contained in:
2024-05-21 05:11:11 +00:00
committed by Naomi Carrigan
parent bbd6a710bb
commit a85b478dba
16 changed files with 2182 additions and 1856 deletions
-3
View File
@@ -1,6 +1,5 @@
import { execSync } from "child_process";
import { PrismaClient } from "@prisma/client";
import { Client, Events, GatewayIntentBits, WebhookClient } from "discord.js";
import { onInteractionCreate } from "./events/onInteractionCreate";
@@ -32,14 +31,12 @@ import { logHandler } from "./utils/logHandler";
GatewayIntentBits.GuildMembers,
],
}) as ExtendedClient;
bot.db = new PrismaClient();
bot.debug = new WebhookClient({ url: process.env.DEBUG });
bot.comm = new WebhookClient({ url: process.env.COMM });
bot.dist = new WebhookClient({ url: process.env.DIST });
bot.news = new WebhookClient({ url: process.env.NEWS });
bot.ticket = new WebhookClient({ url: process.env.TICKET });
bot.ticketLogs = {};
await bot.db.$connect();
const commit = execSync("git rev-parse HEAD").toString().trim();