diff options
Diffstat (limited to 'bot/exts/fun/battleship.py')
-rw-r--r-- | bot/exts/fun/battleship.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bot/exts/fun/battleship.py b/bot/exts/fun/battleship.py index d9b2b58a..f711074c 100644 --- a/bot/exts/fun/battleship.py +++ b/bot/exts/fun/battleship.py @@ -8,7 +8,7 @@ from discord.ext import commands from pydis_core.utils.logging import get_logger from bot.bot import Bot -from bot.constants import Colours +from bot.constants import Colours, Emojis log = get_logger(__name__) @@ -86,7 +86,6 @@ NUMBERS = [ ] CROSS_EMOJI = "\u274e" -HAND_RAISED_EMOJI = "\U0001f64b" class Game: @@ -338,7 +337,7 @@ class Battleship(commands.Cog): return True # Is dealt with later on if ( user.id not in (ctx.me.id, ctx.author.id) - and str(reaction.emoji) == HAND_RAISED_EMOJI + and str(reaction.emoji) == Emojis.hand_raised and reaction.message.id == announcement.id ): if self.already_playing(user): @@ -384,11 +383,11 @@ class Battleship(commands.Cog): announcement = await ctx.send( "**Battleship**: A new game is about to start!\n" - f"Press {HAND_RAISED_EMOJI} to play against {ctx.author.mention}!\n" + f"Press {Emojis.hand_raised} to play against {ctx.author.mention}!\n" f"(Cancel the game with {CROSS_EMOJI}.)" ) self.waiting.append(ctx.author) - await announcement.add_reaction(HAND_RAISED_EMOJI) + await announcement.add_reaction(Emojis.hand_raised) await announcement.add_reaction(CROSS_EMOJI) try: |