feat: ask ai discord bot (#6842)
Signed-off-by: The-Best-Codes <bestcodes.official@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { openrouter } from "@openrouter/ai-sdk-provider";
|
||||
|
||||
const modelName = process.env.AI_MODEL || "google/gemini-3-flash-preview";
|
||||
|
||||
export const model = openrouter(modelName);
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Client, GatewayIntentBits } from "discord.js";
|
||||
|
||||
const client = new Client({
|
||||
/* Sensible defaults, you can add or remove intents as needed. */
|
||||
intents: [
|
||||
GatewayIntentBits.Guilds,
|
||||
GatewayIntentBits.GuildMessages,
|
||||
GatewayIntentBits.MessageContent,
|
||||
],
|
||||
});
|
||||
|
||||
export default client;
|
||||
Reference in New Issue
Block a user