aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/xkcd.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-11-25 22:02:00 +0000
committerGravatar Chris Lovering <[email protected]>2023-11-25 22:04:09 +0000
commitbbe107b845571b0af449cf3686b5fab8084a3fde (patch)
treea54b562ee258e38bd69ee09672464c00689fd6e2 /bot/exts/fun/xkcd.py
parentUse new logging util from bot-core (diff)
Always use the get_logger func from bot-core
Diffstat (limited to 'bot/exts/fun/xkcd.py')
-rw-r--r--bot/exts/fun/xkcd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/fun/xkcd.py b/bot/exts/fun/xkcd.py
index 7b34795c..df00d89d 100644
--- a/bot/exts/fun/xkcd.py
+++ b/bot/exts/fun/xkcd.py
@@ -1,15 +1,15 @@
-import logging
import re
from random import randint
from discord import Embed
from discord.ext import tasks
from discord.ext.commands import Cog, Context, command
+from pydis_core.utils.logging import get_logger
from bot.bot import Bot
from bot.constants import Colours
-log = logging.getLogger(__name__)
+log = get_logger(__name__)
COMIC_FORMAT = re.compile(r"latest|[0-9]+")
BASE_URL = "https://xkcd.com"
@@ -74,7 +74,7 @@ class XKCD(Cog):
if info["img"][-3:] in ("jpg", "png", "gif"):
embed.set_image(url=info["img"])
date = f"{info['year']}/{info['month']}/{info['day']}"
- embed.set_footer(text=f"{date} - #{info['num']}, \'{info['safe_title']}\'")
+ embed.set_footer(text=f"{date} - #{info['num']}, '{info['safe_title']}'")
embed.colour = Colours.soft_green
else:
embed.description = (