Skip to content
Advertisement

Tag: discord.py

Discord.py ctx commands not responding

None of my ctx commands work. Here I’ll give an example. When I say p!test I want it to print hi and say test, but it’s not responding. Can someone help? Answer If you’re using a on_message event, you have to ‘process commands’ in the last line of the event. Otherwise, your commands won’t work. Reference discord.ext.commands.Bot.process_commands

Retrieving a message from on_raw_reaction_add discord.py

I’ve been trying to make it so the bot removes the reaction using discord.Message.remove_reaction(), but I can’t find a way to actually retrieve and store the message in a variable. Does anybody know how to do this? Here is the code I have so far: Answer on_raw_reaction_add returns a RawReactionActionEvent which has a message_id attribute. You can pass it to

My bot wont run the on_message/on_ready event properly

When i tried to start up my bot, it wouldnt run the on_message event and it wouldnt run the on_ready event either. Here is my code: I have tried to get rid of the on_message event to see if that was the problem, and it didnt fix it. Does anyone have a fix for this? Answer You are not actually

Discord Python Bot Multiple Value in embed field

So i have a discord bot (using python) that connect to a sqlite database, and i want to show the data using embed. The data is containing my daily anime schedule. Here’s the code : The problem is this Discord Embed There are 2 ‘Sunday’ which is not what i wanted. What i want is (example for Sunday), the ‘Value’

how to get a apis output in python without json

here is api i am trying https://api.apithis.net/host2ip.php?hostname=google.com as you can see unlike json apis it dose not have “” that you can copy as response.json here is my current code if anyone can fix would help alot as im not sure how to use apis without json output thanks Answer Firstly the response you are getting is not JSON. If

Advertisement