At first i started to implement this as an funktion with an client inside as seen in my first commits. But then i realized that discord.py has a native way of importing command listeners and so on to a bot so i scraped everything and started implementing it as a cog after a bit of struggeling at first on how to get the import and listeners to work i finally got it to work.
Features:
command syncyng to a guild or globally in cog_load
team id fetching and team dm sending on bot
startup
restart helper task to work with DiscordBotHelper
helper funktions:
check_team_member to check if a user is part of the team that owns the bot or the owner if it belongs to a user
is_team_member:
using check_team_member to create a decorator for /commands to make them only for team members
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.