R
R
RogueQ2020-11-12 00:37:31
Node.js
RogueQ, 2020-11-12 00:37:31

How to make a status that would be set through a bot command?

Help bring the idea to life. I want the status to be set through the bot command (the user must enter it), which would display this status, this particular user, through another command.
I use discord-commando

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-11-12
@RogueQ

var args = message.content.slice(prefix.length).trim().split(' ')
if (message.content.startsWith("status")) client.user.setPresence({ game: { name: 'название' }, status: args[1] });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question