From 211df56e1b6070196c226728b206b0f935ae529a Mon Sep 17 00:00:00 2001 From: bobloy Date: Tue, 29 Sep 2020 12:41:57 -0400 Subject: [PATCH] Add repr --- werewolf/votegroup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/werewolf/votegroup.py b/werewolf/votegroup.py index d8411fb..e651eda 100644 --- a/werewolf/votegroup.py +++ b/werewolf/votegroup.py @@ -22,6 +22,9 @@ class VoteGroup(WolfListener): self.vote_results = {} self.properties = {} # Extra data for other options + def __repr__(self): + return f"{self.__class__.__name__}({self.channel},{self.players})" + @wolflistener("at_game_start", priority=1) async def _at_game_start(self): await self.channel.send(" ".join(player.mention for player in self.players))