diff options
| author | 2018-02-15 21:36:27 +0000 | |
|---|---|---|
| committer | 2018-02-15 21:36:27 +0000 | |
| commit | af39c5ddaa5d7c08480c1d0de0b667393d81e825 (patch) | |
| tree | 64b97f60b9b961bd58f871ff9e19ad78d7010609 | |
| parent | Fix object iteration (diff) | |
Give Inver access to chatops.
Also, snekchek.
| -rw-r--r-- | bot/cogs/deployment.py | 12 | ||||
| -rw-r--r-- | bot/constants.py | 1 | 
2 files changed, 7 insertions, 6 deletions
| diff --git a/bot/cogs/deployment.py b/bot/cogs/deployment.py index c2f32eae3..1019d0ecf 100644 --- a/bot/cogs/deployment.py +++ b/bot/cogs/deployment.py @@ -1,10 +1,10 @@  # coding=utf-8 -from aiohttp import ClientSession, ClientResponse -from discord import Embed, Colour +from aiohttp import ClientSession +from discord import Colour, Embed  from discord.ext.commands import AutoShardedBot, Context, command -from bot.constants import ADMIN_ROLE, DEPLOY_BOT_KEY, DEPLOY_SITE_KEY, DEPLOY_URL, OWNER_ROLE, STATUS_URL +from bot.constants import ADMIN_ROLE, DEPLOY_BOT_KEY, DEPLOY_SITE_KEY, DEPLOY_URL, DEVOPS_ROLE, OWNER_ROLE, STATUS_URL  from bot.decorators import with_role @@ -17,7 +17,7 @@ class Deployment:          self.bot = bot      @command(name="redeploy()", aliases=["bot.redeploy", "bot.redeploy()", "redeploy"]) -    @with_role(ADMIN_ROLE, OWNER_ROLE) +    @with_role(ADMIN_ROLE, OWNER_ROLE, DEVOPS_ROLE)      async def redeploy(self, ctx: Context):          """          Trigger bot deployment on the server @@ -33,7 +33,7 @@ class Deployment:              await ctx.send(f"{ctx.author.mention} Bot deployment failed - check the logs!")      @command(name="deploy_site()", aliases=["bot.deploy_site", "bot.deploy_site()", "deploy_site"]) -    @with_role(ADMIN_ROLE, OWNER_ROLE) +    @with_role(ADMIN_ROLE, OWNER_ROLE, DEVOPS_ROLE)      async def deploy_site(self, ctx: Context):          """          Trigger website deployment on the server @@ -49,7 +49,7 @@ class Deployment:              await ctx.send(f"{ctx.author.mention} Site deployment failed - check the logs!")      @command(name="uptimes()", aliases=["bot.uptimes", "bot.uptimes()", "uptimes"]) -    @with_role(ADMIN_ROLE, OWNER_ROLE) +    @with_role(ADMIN_ROLE, OWNER_ROLE, DEVOPS_ROLE)      async def uptimes(self, ctx: Context):          """          Check the various deployment uptimes for each service diff --git a/bot/constants.py b/bot/constants.py index 2e20a8bab..9fd7ef79b 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -11,6 +11,7 @@ ADMIN_ROLE = 267628507062992896  MODERATOR_ROLE = 267629731250176001  VERIFIED_ROLE = 352427296948486144  OWNER_ROLE = 267627879762755584 +DEVOPS_ROLE = 409416496733880320  DEPLOY_URL = os.environ.get("DEPLOY_URL")  STATUS_URL = os.environ.get("STATUS_URL") | 
