Answer the question
In order to leave comments, you need to log in
Discord.py chatting bots with commands?
Good day!
Recently I started learning Python and I'm trying to write my own bot for Discord.
Today I ran into a problem. There are two bots on the server and I need to configure the interaction between them using commands. I tried something like this:
@bot.command(pass_context=True)
async def Play(message):
channel = bot.get_channel(677972799670845512)
await channel.send("!play")
But the second bot to which such a message was addressed does not want to to react.
How can I establish communication between them and is it possible at all?
(The first bot is not mine)
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Most likely, since the second bot is not yours and it responds to the command of your bot, there is a line in its code that stops code execution if the author of the message is a bot, you can’t fix it in any way, you can only write a bot with the same functionality
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question