Skip to content
Sign upLog in
← Back to Community
How do i use set activity here?
Profile icon
nsysean

For example i want to set my discord bot's presence but it says that set Activity and other commands cannot be read how can i fix that?

Voters
Profile icon
huihuigames01
Profile icon
Toxic23
Profile icon
nsysean
Comments
hotnewtop
Profile icon
RowanFromBJC

If you use this: client.user.setActivity("A Game");, it will display "Playing A Game".
If you want to set status (eg. Online, idle, etc.), use: client.user.setStatus("online");. Options: online, idle, dnd, invisible

Profile icon
nsysean

@RowanFromBJC
oh thx im gonnna try it

Profile icon
nsysean

@RowanFromBJC
it doesnt work
Repl.it - glitch-bot-eee - Opera 1_5_2021 9_58_29 AM (2)

Profile icon
nsysean

@RowanFromBJC
uhh i fixed it but do u know how to make it like listening or something else then playing

Profile icon
RowanFromBJC

@nsysean
To set it to listening, use client.user.setActivity("Song name", { type: "LISTENING"});

Profile icon
nsysean

@RowanFromBJC
do u know how to make it watching X servers?
I tried watching some tutorials, but it keeps showing watching 0 servers

Profile icon
nsysean

@RowanFromBJC
sorry for bothering you lol

Profile icon
RowanFromBJC

@nsysean
If you add it to another server, it should work fine

Profile icon
nsysean

@RowanFromBJC
do you know any good bot hosting webs?

Profile icon
RowanFromBJC

@nsysean
Use UpTimeRobot. Sign up, click add new monitor, set Monitor Type to HTTP(s), set friendly name to whatever you want, set URL (or IP) to https://glitch-bot-123.nsysean.repl.co (for your repl), set Monitoring interval to 5 minutes, and click create.

Profile icon
nsysean

@RowanFromBJC
tried it but it doesnt work

Profile icon
RowanFromBJC

@nsysean
What goes wrong?

Profile icon
nsysean

@RowanFromBJC
nothing happens and sometimes it says bot is already running please stop it first but the bot isnt online

Profile icon
nsysean

@RowanFromBJC
do u know how to use next line in embeds?

Profile icon
RowanFromBJC

@nsysean
You have to run the repl and then wait for 5 minutes then you can turn off your computer of whatever

Profile icon
nsysean

@RowanFromBJC
the bot goes of in 3 minutes

Profile icon
RowanFromBJC

@nsysean
Sorry, I don't understand. Is that good?

Profile icon
nsysean

@RowanFromBJC
after i press run the glitch-bot-123.nsysean.repl.co web is still on but the bot is offline

Profile icon
RowanFromBJC

@nsysean
Make sure that the bot and application on Discord are set up correctly, and make sure the token is valid.

Profile icon
RowanFromBJC

What language are you using, Node.JS (With Discord.js) or Python (With Discord.PY), and please share the link to your repl.

Profile icon
nsysean
Profile icon
nsysean
Profile icon
nsysean

Someone help me please I'm new here.