Skip to content

Commit

Permalink
sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
drhat committed Jun 1, 2023
1 parent e953bcc commit f96ed87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions reginaldCog/reginald.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,10 @@ async def predicate(ctx):

def has_admin_role():
async def predicate(ctx):
#janitor_role_id = 672156832323600396
#has_janitor_role = any(role.id == janitor_role_id for role in ctx.author.roles) # Uncomment this line
has_admin_permission = ctx.author.guild_permissions.administrator
#return has_janitor_role or has_admin_permission
return has_admin_permission
return commands.check(predicate)


@commands.guild_only()
@commands.has_permissions(manage_guild=True)
@commands.command(help="Set the OpenAI API key")
Expand Down
3 changes: 2 additions & 1 deletion trafficCog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
from redbot.core.bot import Red

async def setup(bot: Red):
await bot.add_cog(TrafficCog(bot))
cog = TrafficCog(bot)
await bot.add_cog(cog)

0 comments on commit f96ed87

Please sign in to comment.