gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
how can i make my bot on discord.js have a custom status?
- User
how can i make my bot on discord.js have a custom status?
- Assistant
To make your bot on Discord.js have a custom status, you can use the
client.user.setActivity()method. Here's an example:const Discord = require('discord.js'); const client = new Discord.Client(); client.on('ready', () => { console.log('Bot is online'); // Set custom status client.user.setActivity('My Custom Status', { type: 'WATCHING' }); }); client.login('YOUR_BOT_TOKEN');In this example, the bot's status will be set to "My Custom Status" with a type of "Watching". You can customize the text and the type to match your desired status. Here are some of the available types:
PLAYING: Playing a gameSTREAMING: Streaming on Twitch or other platformsLISTENING: Listening to music or other audioWATCHING: Watching a video or other mediaCUSTOM_STATUS: Custom status text
You can select the appropriate type based on your custom status.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.