Below you will find pages that utilize the taxonomy term “bot”
Posts
Discord: creating a bot
Creating a bot on discord While there are some samples in discord.py. The API is fairly flat and hard to navigate.
Here are the links to getting started:
commands
Understanding the context The Context (ctx) is often the first argument in the functions from @bot.command. This ctx contains most of the things needed to identify the message triggering the robot to respond (ctx fields):
guild - on which server the robot was triggered message - the message of the command author - the author of the message send() - a function that allows the robot to respond back as a response to the trigger From this it is obvious you need some other way of getting at the channel where the message was sent.