From 519aca51db0bece7bb716b77a12ca49242077d4f Mon Sep 17 00:00:00 2001 From: bibin Date: Wed, 15 Jul 2020 17:12:10 +0200 Subject: [PATCH] resolved some name changes --- .gitignore | 2 +- src/package/games/werewolf/game.py | 4 ++-- src/package/games/werewolf/players.py | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 6b0dd66..4e78b90 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ secrets.env .env venv -src/__pycache__/ +__pycache__/ src/test.py \ No newline at end of file diff --git a/src/package/games/werewolf/game.py b/src/package/games/werewolf/game.py index 4d1b9ee..34fe62d 100644 --- a/src/package/games/werewolf/game.py +++ b/src/package/games/werewolf/game.py @@ -3,7 +3,7 @@ import time import asyncio import discord from .roles import Role, Doppelganger, Werewolf, Minion, Mason, Seer, Robber, Troublemaker, Drunk, Insomniac, Tanner, Hunter, No_role -from .players import Player, No_player +from .players import Werewolf_player, No_player class Werewolf_game: @@ -27,7 +27,7 @@ class Werewolf_game: await asyncio.gather(*[call(p) for p in self.player_list]) async def set_players(self, msg): - self.player_list = [await Player.make(mem, self) for mem in msg.mentions] + self.player_list = [await Werewolf_player.make(mem, self) for mem in msg.mentions] await self.send(f"Players: {', '.join(p.name() for p in self.player_list)}") # send confirmation async def set_roles(self, suggestions): diff --git a/src/package/games/werewolf/players.py b/src/package/games/werewolf/players.py index a17ab9c..443f075 100644 --- a/src/package/games/werewolf/players.py +++ b/src/package/games/werewolf/players.py @@ -1,9 +1,7 @@ -import discord - """Has a single class: Werewolf_player""" # local import -from .player import Player +from ..players import Player class Werewolf_player(Player):