diff --git a/werewolf/builder.py b/werewolf/builder.py index 4c803cc..f57a669 100644 --- a/werewolf/builder.py +++ b/werewolf/builder.py @@ -27,7 +27,7 @@ log = logging.getLogger("red.fox_v3.werewolf.builder") ROLE_DICT = {name: cls for name, cls in roles.__dict__.items() if isinstance(cls, type)} ROLE_LIST = sorted( [cls for cls in ROLE_DICT.values()], - key=attrgetter('alignment'), + key=attrgetter("alignment"), ) log.debug(f"{ROLE_DICT=}") diff --git a/werewolf/game.py b/werewolf/game.py index df345af..79d8455 100644 --- a/werewolf/game.py +++ b/werewolf/game.py @@ -1,9 +1,8 @@ import asyncio -import inspect import logging import random from collections import deque -from typing import List, Any, Dict, Set, Union +from typing import Dict, List, Union import discord from redbot.core import commands @@ -338,7 +337,7 @@ class Game: if check(): return await self.village_channel.send( - embed=discord.Embed(title=f"**{HALF_DAY_LENGTH/60} minutes of daylight remain...**") + embed=discord.Embed(title=f"**{HALF_DAY_LENGTH / 60} minutes of daylight remain...**") ) await asyncio.sleep(HALF_DAY_LENGTH) # 4 minute days FixMe to 120 later diff --git a/werewolf/roles/seer.py b/werewolf/roles/seer.py index 32ace18..f6bd857 100644 --- a/werewolf/roles/seer.py +++ b/werewolf/roles/seer.py @@ -1,7 +1,11 @@ import logging -from werewolf.constants import ALIGNMENT_TOWN, ALIGNMENT_WEREWOLF, CATEGORY_TOWN_INVESTIGATIVE, \ - CATEGORY_TOWN_RANDOM +from werewolf.constants import ( + ALIGNMENT_TOWN, + ALIGNMENT_WEREWOLF, + CATEGORY_TOWN_INVESTIGATIVE, + CATEGORY_TOWN_RANDOM, +) from werewolf.listener import wolflistener from werewolf.night_powers import pick_target from werewolf.role import Role @@ -91,7 +95,7 @@ class Seer(Role): if alignment == ALIGNMENT_WEREWOLF: out = "Your insight reveals this player to be a **Werewolf!**" - else: # Don't reveal neutrals + else: # Don't reveal neutrals out = "You fail to find anything suspicious about this player..." await self.player.send_dm(out) diff --git a/werewolf/votegroups/wolfvote.py b/werewolf/votegroups/wolfvote.py index 7f6bbde..75fb01c 100644 --- a/werewolf/votegroups/wolfvote.py +++ b/werewolf/votegroups/wolfvote.py @@ -69,5 +69,5 @@ class WolfVote(VoteGroup): await self.channel.send( "{} has voted to kill {}".format(author.mention, target.member.display_name), - allowed_mentions=discord.AllowedMentions(everyone=False, users=[author]) + allowed_mentions=discord.AllowedMentions(everyone=False, users=[author]), )