Search results
Results from the WOW.Com Content Network
Bots must be manually authorized through OAuth. If you want a bot to join the server itself, it could use the invite link to get the server and DM the server owner (that can be found using the property) a OAuth link for the bot.
How do I make my Discord Bot active? When I close my vs code and command prompt, and I do the command in discord, it's not responding anymore. My Discord Bot is showing online but he's just not responding when I close command prompt or vs code. Is there anyway to make your Discord Bot active? So that even I'm not programming my Bot, it will ...
First you need to add the Emoji to YOUR (on a server where the bot has access) server. after adding you type in the Emoji name e.g -> ":myemoji:" and before the emoji you type an backslash -> (backslah here):myemoji: and send the message.
Can Discord bots automatically accept invites they get in a DM? How would one go about doing this? Is it possible to make a bot that accepts invites, or do bots have to be invited themselves.
Discord does not connect to your network, but you connect to Discord's network (the API). You ask the Discord API for information, you then do something with this information and you send something back. Your bot is not a server, the Discord API is a (web) server.
According to a Github issue on discord-api-docs, More specifically, this issue, and even more specifically, this comment on that issue. You can basically set the activity type to 4 for the client's cs by using the ClientUser.setActivity() method, and check it's full profile to see that custom status is technically available for bots.
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 ...
Since this answer is two years old, I have now learned that Discord.js is a much superior API, so please use Discord.js: discord.js.org – scoutchorton Commented Mar 18, 2021 at 3:04
You need to create your own event loop and run the bots with that, as client.run is blocking.. from discord.ext import commands import asyncio client = commands.Bot ...
However with a more in depth project, I would advise (for commands and such) using different files for the 2 bots as I think the code would get messy and hard to read quickly, even if you use the same index.js file.