enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. You can use the following lines of code, depending on which activity you want to change the bot to: # Setting `Playing ` status await bot.change_presence(activity=discord.Game(name="a game")) # Setting `Streaming ` status await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url)) # Setting `Listening ` status await bot.change_presence(activity=discord.Activity ...

  3. Based on the error; Expected 'options' to be an object or undefined, got number. And, based on this commit, You should pass the 2nd argument as an object instead of PORT since it's a type of StatusOptions instead of a number. So, instead of; util.status('IP', (PORT), (error, reponse) => {. You should be doing;

  4. You will need to await it and get the presence from there. (async () => { //await needs async. const user = await client.users.fetch('Users ID'); const usersStatus = user.presence.status. })() Additionally, you won't get any users if the client is not ready. You should make sure this is in your ready event so the client fetches the user properly.

  5. Discord.js: How read users status with a bot on server?

    stackoverflow.com/questions/46024245

    Welcome to Stack Overflow! While this code may solve the question, including an explanation of how and why this solves the problem would really help to improve the quality of your post, and probably result in more up-votes.

  6. I am trying to write a chunk of code for my discord bot that announces when one of my friend's profile status updates from offline to online. Currently, I am fiddling around with some code, this is...

  7. How do I make a bot status that has memberCount on it?

    stackoverflow.com/questions/60225366

    1. At the first you need set interval command to update member. You dont need use this.user for this operation. The previus answer method will display only cached users, so its wrong way, because on bot start, you will has no users in this collection. If you need display members on your own server you can do like this:

  8. Enabling and disabling community server status using Discord.py

    stackoverflow.com/questions/77687970/enabling-and-disabling-community-server...

    0. I can't figure out how to enable or disable community server status with a command command, if anyone could help me i would love it thank you! discord.py. edited Jan 4 at 18:36. Taavi. 354 5 15. asked Dec 19, 2023 at 21:00. Jordan Flames. 1.

  9. discord.js http request/status - Stack Overflow

    stackoverflow.com/questions/65600460

    I just want to code the command /status. As soon as a user types this command, the bot should send a embed with the following text: Website-Status: ONLINE/OFFLINE Server-Status: ONLINE/OFFLINE I need help :D

  10. I want to make discord bot which ping the minecraft server and: if server respond he edit lock voice channel name to "Server Status - Online". Else he edit channel name: "Server Status - Offline" I'm use mcstatus to ping the server and this work! But sometimes bot have lags and i don't know how fix it. P.s. Sorry for my bad english.

  11. Sorry for the long title. I want my bot to tell me how many members that my bot is in a server with in the bot's status. In other words, I want my bot's statues to say Watching [member count] people and [server count] servers, but I don't know how. Can anyone help?