final major commit before rewrite in typescript
This commit is contained in:
parent
2c2fd8b5ff
commit
fd6a98d80c
11 changed files with 346 additions and 46 deletions
|
@ -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`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue