add a activity
This commit is contained in:
parent
c892ebe7db
commit
bddcec3e47
1 changed files with 10 additions and 1 deletions
11
index.ts
11
index.ts
|
|
@ -6,7 +6,12 @@ import type {
|
|||
UserMessage,
|
||||
} 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.
|
||||
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.user?.setActivity("@grok Is this real?", {
|
||||
type: ActivityType.Watching,
|
||||
});
|
||||
|
||||
console.log(`Logged in as ${client.user!.tag}!`);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue