feat: initial prototype
Node.js CI / Lint and Test (push) Failing after 38s

This commit is contained in:
2025-08-22 13:40:16 -07:00
parent 46585383b4
commit dc317abfff
12 changed files with 7837 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
/**
* @copyright NHCarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import {
Client,
GatewayIntentBits,
Events,
} from "discord.js";
import { processMessage } from "./modules/processMessage.js";
import { instantiateServer } from "./server/serve.js";
import { logger } from "./utils/logger.js";
const caelia = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
],
});
caelia.once(Events.ClientReady, () => {
void logger.log("debug", `Logged in as ${caelia.user?.username ?? "unknown user"}.`);
});
caelia.on(Events.MessageCreate, (message) => {
void processMessage(message);
});
await caelia.login(process.env.BOT_TOKEN);
instantiateServer();