mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
* Dependency update discord.py==1.0.1 websockets<7 [style] black==19.3b0 [Docs] jinja==2.10.1 urllib3==1.24.2 Changes related to breaking changes from discord.py have also been made to match As of this commit, help formatter is back to discord.py's default
14 lines
495 B
Python
14 lines
495 B
Python
from .permissions import Permissions
|
|
|
|
|
|
async def setup(bot):
|
|
cog = Permissions(bot)
|
|
await cog.initialize()
|
|
# It's important that these listeners are added prior to load, so
|
|
# the permissions commands themselves have rules added.
|
|
# Automatic listeners being added in add_cog happen in arbitrary
|
|
# order, so we want to circumvent that.
|
|
bot.add_listener(cog.red_cog_added, "on_cog_add")
|
|
bot.add_listener(cog.red_command_added, "on_command_add")
|
|
bot.add_cog(cog)
|