From 8db4d7f6639b3c31822ec41e2398d4ac008fdb8a Mon Sep 17 00:00:00 2001 From: Bobloy Date: Thu, 3 May 2018 17:05:17 -0400 Subject: [PATCH] correct guesses --- hangman/hangman.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hangman/hangman.py b/hangman/hangman.py index 0e1da72..bea9ded 100644 --- a/hangman/hangman.py +++ b/hangman/hangman.py @@ -162,7 +162,8 @@ class Hangman: self._startgame(ctx.guild) await self._printgame(ctx.channel) else: - await self._guessletter(guess, ctx.channel) + await ctx.send("Guess by reacting to the message") + # await self._guessletter(guess, ctx.channel) def _startgame(self, guild): """Starts a new game of hangman""" @@ -254,7 +255,7 @@ class Hangman: if str(emoji) in self.letters: letter = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"[self.letters.index(str(emoji))] - await self._guessletter(letter, message.channel) + await self._guessletter(letter, message) await message.remove_reaction(emoji, user) await message.remove_reaction(emoji, self.bot.user)