G
G
Guest Nirvalen2019-04-10 14:39:06
JavaScript
Guest Nirvalen, 2019-04-10 14:39:06

How to make discord.js bot status?

I want to make an extended status for example: 5cadd57721cb7574457094.png
Or if this is not possible, then give a script for the status of the bot "Streaming in ..."
I will be grateful

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2020-07-28
@Alexandre888

inserting a programming language logo and a circle in the lower right corner is impossible.
but, you can add lines (visual studio code, editing, workspace, passed).
of course, the bot will not be able to monitor your workspace and file, but the lines will be, for example:

client.user.setPresence({
        game: {
          name: `Visual Studio Code\nEditing: discord.rb`, /* если интересует, как сделать "прошло" - отпишите в комментарии */
          type: 'LISTENING'
        }
      })

if you want to implement "streaming" - replace the value in type:with STREAMINGand add after the STREAMINGline url:
url: "link to twitch account"
it should turn out like this

client.user.setPresence({
        game: {
            name: 'text',
            type: "STREAMING",
            url: "ссылка"
        }
    });
});

E
egorlisss, 2019-04-10
@egorlisss

Discord does not provide an option to make expanded status for bots

client.user.setPresence({
        game: {
          name: `ваш текст`,
          type: 0  //экспериментируйте доступные значения 0-3, что-то из этого "стримит"
        }
      })

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question