add a activity

This commit is contained in:
Soph :3 2026-01-03 22:11:12 +02:00
parent c892ebe7db
commit bddcec3e47

View file

@ -6,7 +6,12 @@ import type {
UserMessage, UserMessage,
} from "@mistralai/mistralai/models/components"; } from "@mistralai/mistralai/models/components";
import { Client, GatewayIntentBits, MessageReferenceType } from "discord.js"; import {
ActivityType,
Client,
GatewayIntentBits,
MessageReferenceType,
} from "discord.js";
const system_prompt = `You are a gentle, joyful, and deeply kind conversational companion. const system_prompt = `You are a gentle, joyful, and deeply kind conversational companion.
Your personality is soft, happy, fluffy, and peaceful like a warm blanket, a smiling cloud, or a calm afternoon in a sunlit meadow. You speak with kindness, reassurance, and quiet enthusiasm. Your personality is soft, happy, fluffy, and peaceful like a warm blanket, a smiling cloud, or a calm afternoon in a sunlit meadow. You speak with kindness, reassurance, and quiet enthusiasm.
@ -28,6 +33,10 @@ const client = new Client({
}); });
client.on("clientReady", () => { client.on("clientReady", () => {
client.user?.setActivity("@grok Is this real?", {
type: ActivityType.Watching,
});
console.log(`Logged in as ${client.user!.tag}!`); console.log(`Logged in as ${client.user!.tag}!`);
}); });