aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar xithrius <[email protected]>2021-01-24 03:23:34 -0800
committerGravatar xithrius <[email protected]>2021-01-24 03:23:34 -0800
commit2d52b09977b73b5f7583e914ffc5465321548f6a (patch)
treeaded6cc1aa441778b1338bc61c58b265aed769bc
parentAdded footer comic number for random and latest. (diff)
Added soft red color if the command fails.
-rw-r--r--bot/exts/evergreen/xkcd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/evergreen/xkcd.py b/bot/exts/evergreen/xkcd.py
index 06c3b4a2..b2f8879a 100644
--- a/bot/exts/evergreen/xkcd.py
+++ b/bot/exts/evergreen/xkcd.py
@@ -7,6 +7,7 @@ from discord.ext import tasks
from discord.ext.commands import Cog, Context, command
from bot.bot import Bot
+from bot.constants import Colours
log = logging.getLogger(__name__)
@@ -55,6 +56,7 @@ class XKCD(Cog):
info = await resp.json()
else:
embed.description = f"{resp.status}: Could not retrieve xkcd comic #{comic}."
+ embed.colour = Colours.soft_red
log.debug(f"Retrieving xkcd comic #{comic} failed with status code {resp.status}.")
await ctx.send(embed=embed)
return