Ejemplo n.º 1
0
 def handle_roulette_command(self, message: Message):
     message.respond(f"😣🔫 {message.author.mention()} places the muzzle against their head...")
     sleep(3)
     if randint(0, BULLETS_COUNT) == 0:
         self.kv.decrement_int(PLAYER_POINTS_FORMAT.format(message.author.id), DEATH_POINTS_PENALTY)
         message.respond(f"☠ {message.author.mention()} dies and loses {DEATH_POINTS_PENALTY}!")
     else:
         self.kv.increment_int(PLAYER_POINTS_FORMAT.format(message.author.id), WIN_POINTS_REWARD)
         message.respond(f"🥵 {message.author.mention()} lives and wins **{WIN_POINTS_REWARD} points**!")
Ejemplo n.º 2
0
 def handle_points_command(self, message: Message):
     points = self.kv.get_int(PLAYER_POINTS_FORMAT.format(message.author.id), default=0)
     message.respond(f"{message.author.mention()}, you have **{points} points**!")