final major commit before rewrite in typescript

This commit is contained in:
ayeuhugyu 2024-02-20 16:59:51 -08:00
parent 2c2fd8b5ff
commit fd6a98d80c
11 changed files with 346 additions and 46 deletions

View file

@ -1,6 +1,7 @@
import { GatewayIntentBits, Partials, Client } from "discord.js";
import events from "./events/importEvents.js";
import register from "./register-commands.js";
import fs from "fs";
export const client = new Client({
intents: [
@ -76,6 +77,7 @@ client.on("messageCreate", async (message) => {
sendMainMessage(
"messageCreate event produced error; see crashes.log for details."
);
console.log(err);
try {
fs.appendFileSync(
`../pepperbot/logs/crashes.log`,