DiscordBot not answering
I can’t understand why my Discord Bot is not responding or messaging to me.
Bot allow reaction Y only if reaction X has been added
if user == and str(reaction.emoji) == “U0001F5BCU0000FE0F”: channel = client.get_channel(1245390045859549285) #👜-reward-container # Filter out mention at the start mention_regex = re.compile(r”^<@&(d+)> “) filtered_content = mention_regex.sub(“”, reaction.message.content, 1) print(filtered_content) message = await channel.send(f”{filtered_content} by {reaction.message.author.mention}”) await message.add_reaction(“U0001F5BCU0000FE0F”) Trying to find a way to prevent people from adding this reaction before adding U00002620U0000fe0f first. I came up […]
Discord bot getting rate limited without exceeding Discords 50 requests per second (3 requests in 53seconds)
I’m making a Discord bot that sends requests for channel renamig every time someone joins or leaves Minecraft server. As the title says, I was far away from breaking the actual rate limit. At one point, I set the delay to be 20 seconds and after the 3rd request, I was still being limited.
Unable to import file that’s in the same folder as the file I’m importing in [duplicate]
This question already has answers here: Importing files from different folder (41 answers) Closed yesterday. I’m coding a Discord bot and wanted to have a utilities file that I can import functions from so my other files don’t get too cluttered. All of the bot’s files are in a folder called Science_Bot. Science_Bot contains a […]
Discord.py forum threads invalid form body
I’m trying to link my google spreadsheet to a discord forum threads and I have been getting into these errors saying that its an invalid form body for exceeding the character limit of 2000 or 4000 and if I change that, it’ll say that it cannot send an empty message. I’ve gotten it to send out the first message but I’m running into the issue of when it gets to the second message if it needs to.
discord.py get subcommand
I am trying to get the subcommand that the user has called in Bot.process_commands
this was my code
Duplicate Commands for discord.py
I created a discord bot in python, and at first i had it set so that it would sync the commands to a specific guild, but i recently changed it so that it is synced globally, and now there is this bizarre bug which duplicates every command so it appears twice. These are a few of the commands that are duplicated.
Bot that will ping users who used reaction X in the thread
Right now my bot responds to a message in different channel and creates thread of its own message.
How do I get users that reacted to a message it responded to so I can mention them in the thread it creates later on?
How do i detect a tag on a post in forums channel in discord.py?
I searched through the internet and I couldn’t find the answer I am asking here.
How do i detect a tag on a post in forums channel in discord.py?
I searched through the internet and I couldn’t find the answer I am asking here.