Ask coding questions

← Back to all posts
How do i use set activity here?
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
Toxic23
nsysean
Comments
hotnewtop
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

nsysean

@RowanFromBJC oh thx im gonnna try it

nsysean

@RowanFromBJC it doesnt work

nsysean

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

RowanFromBJC

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

nsysean

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

nsysean

@RowanFromBJC sorry for bothering you lol

RowanFromBJC

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

nsysean

@RowanFromBJC do you know any good bot hosting webs?

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.

nsysean

@RowanFromBJC tried it but it doesnt work

RowanFromBJC

@nsysean What goes wrong?

nsysean

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

nsysean

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

RowanFromBJC

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

nsysean

@RowanFromBJC the bot goes of in 3 minutes

RowanFromBJC

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

nsysean

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

RowanFromBJC

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

RowanFromBJC

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

nsysean
nsysean
nsysean

Someone help me please I'm new here.