Fix typing

pull/124/head
stijndcl 2022-07-27 22:08:00 +02:00
parent d4dae7826d
commit c4c9461ca3
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ class WordleEmbed(EmbedBaseModel):
rows = [" ".join(row) for row in emojis]
# Don't reveal anything if we only want to show the colours
if not only_colours:
if not only_colours and self.game is not None:
for i, guess in enumerate(self.game.guesses):
rows[i] += f" ||{guess.upper()}||"
@ -126,7 +126,7 @@ class WordleErrorEmbed(EmbedBaseModel):
message: str
@overrides
def to_embed(self) -> discord.Embed:
def to_embed(self, **kwargs: dict) -> discord.Embed:
embed = discord.Embed(colour=discord.Colour.red(), title="Wordle")
embed.description = self.message
embed.set_footer(text=footer())

View File

@ -27,7 +27,7 @@ class Didier(commands.Bot):
error_channel: discord.abc.Messageable
initial_extensions: tuple[str, ...] = ()
http_session: ClientSession
wordle_words: set[str, ...] = set()
wordle_words: set[str] = set()
def __init__(self):
activity = discord.Activity(type=discord.ActivityType.playing, name=settings.DISCORD_STATUS_MESSAGE)