resolved some name changes

This commit is contained in:
Bibin Muttappillil 2020-07-15 17:12:10 +02:00
parent cbaafe0b85
commit 519aca51db
3 changed files with 4 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
secrets.env secrets.env
.env .env
venv venv
src/__pycache__/ __pycache__/
src/test.py src/test.py

View File

@ -3,7 +3,7 @@ import time
import asyncio import asyncio
import discord import discord
from .roles import Role, Doppelganger, Werewolf, Minion, Mason, Seer, Robber, Troublemaker, Drunk, Insomniac, Tanner, Hunter, No_role 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: class Werewolf_game:
@ -27,7 +27,7 @@ class Werewolf_game:
await asyncio.gather(*[call(p) for p in self.player_list]) await asyncio.gather(*[call(p) for p in self.player_list])
async def set_players(self, msg): 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 await self.send(f"Players: {', '.join(p.name() for p in self.player_list)}") # send confirmation
async def set_roles(self, suggestions): async def set_roles(self, suggestions):

View File

@ -1,9 +1,7 @@
import discord
"""Has a single class: Werewolf_player""" """Has a single class: Werewolf_player"""
# local import # local import
from .player import Player from ..players import Player
class Werewolf_player(Player): class Werewolf_player(Player):