aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.")