aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/spookynamerate.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/halloween/spookynamerate.py')
-rw-r--r--bot/exts/halloween/spookynamerate.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/halloween/spookynamerate.py b/bot/exts/halloween/spookynamerate.py
index 3d6d95fa..5c21ead7 100644
--- a/bot/exts/halloween/spookynamerate.py
+++ b/bot/exts/halloween/spookynamerate.py
@@ -6,7 +6,7 @@ from datetime import datetime, timedelta
from logging import getLogger
from os import getenv
from pathlib import Path
-from typing import Union
+from typing import Optional
from async_rediscache import RedisCache
from discord import Embed, Reaction, TextChannel, User
@@ -91,7 +91,7 @@ class SpookyNameRate(Cog):
# will automatically start the scoring and announcing the result (without waiting for 12, so do not expect it to.).
# Also, it won't wait for the two hours (when the poll closes).
- def __init__(self, bot: Bot) -> None:
+ def __init__(self, bot: Bot):
self.bot = bot
self.name = None
@@ -355,7 +355,7 @@ class SpookyNameRate(Cog):
return embed
- async def get_channel(self) -> Union[TextChannel, None]:
+ async def get_channel(self) -> Optional[TextChannel]:
"""Gets the sir-lancebot-channel after waiting until ready."""
await self.bot.wait_until_ready()
channel = self.bot.get_channel(