How to make a discord bot use other discord bot commands?

Question:

im creating a discord bot in python and i would like to make my bot command the music bot to play music. for example i want my bot to write /play prompet:[SONG_NAME] in a chat room and let it be recognized and played by the other music bot. if someone has an idea to make it work please help!

i been trying to just write a string with my own bot "/play prompet:[SONG_NAME]" but the other bot is not reacting.

Asked By: ElayA

||

Answers:

You can’t do this. Discord.py by default doesn’t invoke commands on messages of other bots, unless you override on_message and call process_commands without checking the message author.

Consequently, if the bot is not yours and you cannot control it, there’s nothing you can do about it. If the other bot allows it then it will work without you having to do anything.

Invoking slash commands from chat will never work, as they’re not made to be called by bots.

Answered By: stijndcl
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.