My bot is in a few servers now and one of the main bits of feedback I've gotten is that server admins would like to block the bot from responding in certain channels without having to go through Discord's permissions manager. However I am unsure of where to start with this so I thought I'd reach out here and see if I can get any advice or code snippets to use!
Basically the admin would use like !fg ignore 'channel name or id' and then somewhere the bot would store this and not respond, and then similarly if they use !fg unignore 'channel name or id' it would then remove that from the list or where ever its stored.
Any help would be greatly appreciated, thanks!
You'll need to keep the channels ids in a list then in the bots on_message function check if the message is not in that channel and if not then run your commands.
Discord.py - How would I go about making a command that will allow server admins to block the bot from responding in specified channels?