added dotenv import at top for pm2 to work

This commit is contained in:
Luna
2026-02-27 03:33:51 +01:00
parent 090b22b063
commit 4d8c536e49
3 changed files with 6 additions and 435 deletions

View File

@@ -1,9 +1,10 @@
import dotenv from "dotenv";
dotenv.config({ path: "../.env" });
import { Client, GatewayIntentBits, Partials, ChannelType } from 'discord.js';
import { config } from './config.js';
import { chatCompletion } from './openai.js';
import { appendShortTerm, prepareContext, recordInteraction } from './memory.js';
import { searchWeb, appendSearchLog, detectFilteredPhrase } from './search.js';
const client = new Client({
intents: [
GatewayIntentBits.Guilds,