Logs mainly

pull/147/head
bobloy 4 years ago
parent 339492d6d9
commit 7e1a6e108e

@ -1,4 +1,5 @@
import bisect
import logging
from collections import defaultdict
from random import choice
@ -13,6 +14,8 @@ from .roles.vanillawerewolf import VanillaWerewolf
from .roles.villager import Villager
from redbot.core.utils.menus import menu, prev_page, next_page, close_menu
log = logging.getLogger("red.fox_v3.werewolf.builder")
# All roles in this list for iterating
ROLE_LIST = sorted([Villager, Seer, VanillaWerewolf], key=lambda x: x.alignment)

@ -1,4 +1,5 @@
import asyncio
import logging
import random
from typing import List, Any, Dict, Set, Union
@ -10,6 +11,8 @@ from .player import Player
from .role import Role
from .votegroup import VoteGroup
log = logging.getLogger("red.fox_v3.werewolf.game")
class Game:
"""

@ -1,5 +1,9 @@
import logging
from .role import Role
log = logging.getLogger("red.fox_v3.werewolf.night_powers")
def night_immune(role: Role):
role.player.alive = True

@ -1,5 +1,9 @@
import logging
import discord
log = logging.getLogger("red.fox_v3.werewolf.player")
class Player:
"""

@ -1,3 +1,8 @@
import logging
log = logging.getLogger("red.fox_v3.werewolf.role")
class Role:
"""
Base Role class for werewolf game

@ -1,3 +1,8 @@
import logging
log = logging.getLogger("red.fox_v3.werewolf.votegroup")
class VoteGroup:
"""
Base VoteGroup class for werewolf game

@ -1,3 +1,5 @@
import logging
import discord
from redbot.core import Config, checks, commands
from redbot.core.bot import Red
@ -13,6 +15,8 @@ from .builder import (
)
from .game import Game
log = logging.getLogger("red.fox_v3.werewolf")
class Werewolf(Cog):
"""

Loading…
Cancel
Save