Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set bot's status

So I'm trying to make my bot's streaming to be with depression but I've tried multiple things and they don't work.
I've tried these methods:

client.user.setPresence({ game: { name: 'with depression' }, status: 'online' });
bot.user.setGame('with depression', 'https://www.twitch.tv/monstercat');

None of these seem to be working the way they should. Any help is appreciated.

like image 233
Modular Avatar asked Mar 14 '18 19:03

Modular


People also ask

How do I change my autocode status?

To make changes, just open functions>events>scheduler>xminutely. js after installing. You'll see three arrays that you can customize: activitynameslist , which contains specific activity names you can set for your bot.


2 Answers

Use this:

client.user.setActivity("with depression", {
  type: "STREAMING",
  url: "https://www.twitch.tv/monstercat"
});
like image 98
Federico Grandi Avatar answered Oct 20 '22 13:10

Federico Grandi


.setGame is discontinued. Use:

client.user.setActivity("Game"); 

To set a playing game status.

As an addition, if you were using an earlier version of discord.js, try this:

client.user.setGame("Game");

In newer versions of discord.js, this is deprecated.

like image 44
Monacraft Avatar answered Oct 20 '22 13:10

Monacraft