def hook_stats(self, message): if self.privmsg_alert(message,True,False): players = ["{0}[{1}]".format(p.nick, len(p.cards)) for p in self.game.players] self.privmsg(message.location, "Players: {0}".format(utils.list_items(",", players)))
def hook_uno(self, message): if self.privmsg_alert(message): if not self.game.is_running: self.game.is_running = True self.game.add_player(message.unparsedNick) self.privmsg(message.location,"Uno Game Started | Players in the game: {0}".format(utils.list_items(",", self.game.players))) self.privmsg(message.location,"To join the game type .join, to start type .deal") else: self.privmsg(message.location, "Game is already started.")