This commit is contained in:
bobloy 2020-09-28 10:54:47 -04:00
parent af4cd92488
commit 8a42b87bd6
4 changed files with 11 additions and 8 deletions

View File

@ -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=}")

View File

@ -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

View File

@ -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

View File

@ -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]),
)