aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-15 18:19:28 +0000
committerGravatar Gareth Coles <[email protected]>2018-02-15 18:19:28 +0000
commitfc11b78a8f5e4dec0ecd80010eaa8f6bda408e4a (patch)
tree8da3c9ac208cbabd6f15dba94e78806e8928ed49
parentActually parse the JSON correctly (diff)
Fix silly equality check
-rw-r--r--bot/cogs/deployment.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bot/cogs/deployment.py b/bot/cogs/deployment.py
index b586eb036..045f0c4af 100644
--- a/bot/cogs/deployment.py
+++ b/bot/cogs/deployment.py
@@ -1,5 +1,5 @@
# coding=utf-8
-from aiohttp import ClientSession
+from aiohttp import ClientSession, ClientResponse
from discord import Embed, Colour
from discord.ext.commands import AutoShardedBot, Context, command
@@ -24,7 +24,8 @@ class Deployment:
"""
with ClientSession() as session:
- result = await session.get(DEPLOY_URL, headers={"token": DEPLOY_BOT_KEY})
+ response = await session.get(DEPLOY_URL, headers={"token": DEPLOY_BOT_KEY})
+ result = response.text()
if result == "True":
await ctx.send(f"{ctx.author.mention} Bot deployment started.")
@@ -39,7 +40,8 @@ class Deployment:
"""
with ClientSession() as session:
- result = await session.get(DEPLOY_URL, headers={"token": DEPLOY_SITE_KEY})
+ response = await session.get(DEPLOY_URL, headers={"token": DEPLOY_SITE_KEY})
+ result = response.text()
if result == "True":
await ctx.send(f"{ctx.author.mention} Site deployment started.")