aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/snakes/_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/fun/snakes/_utils.py')
-rw-r--r--bot/exts/fun/snakes/_utils.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/bot/exts/fun/snakes/_utils.py b/bot/exts/fun/snakes/_utils.py
index 8d24a6aa..77957187 100644
--- a/bot/exts/fun/snakes/_utils.py
+++ b/bot/exts/fun/snakes/_utils.py
@@ -11,7 +11,7 @@ from discord import File, Member, Reaction, User
from discord.ext.commands import Cog, Context
from pydis_core.utils.logging import get_logger
-from bot.constants import MODERATION_ROLES
+from bot.constants import Emojis, MODERATION_ROLES
SNAKE_RESOURCES = Path("bot/resources/fun/snakes").absolute()
@@ -355,17 +355,17 @@ def frame_to_png_bytes(image: Image) -> io.BytesIO:
log = get_logger(__name__)
-START_EMOJI = "\u2611" # :ballot_box_with_check: - Start the game
-CANCEL_EMOJI = "\u274C" # :x: - Cancel or leave the game
-ROLL_EMOJI = "\U0001F3B2" # :game_die: - Roll the die!
-JOIN_EMOJI = "\U0001F64B" # :raising_hand: - Join the game.
+START_EMOJI = Emojis.check
+CANCEL_EMOJI = Emojis.cross_mark
+DICE_ROLL_EMOJI = "\U0001F3B2"
+JOIN_EMOJI = "\U0001F64B"
STARTUP_SCREEN_EMOJI = [
JOIN_EMOJI,
START_EMOJI,
CANCEL_EMOJI
]
GAME_SCREEN_EMOJI = [
- ROLL_EMOJI,
+ DICE_ROLL_EMOJI,
CANCEL_EMOJI
]
@@ -585,7 +585,7 @@ class SnakeAndLaddersGame:
file=board_file
)
temp_positions = await self.channel.send(
- f"**Current positions**:\n{player_list}\n\nUse {ROLL_EMOJI} to roll the dice!"
+ f"**Current positions**:\n{player_list}\n\nUse {DICE_ROLL_EMOJI} to roll the dice!"
)
# Delete the previous messages
@@ -615,7 +615,7 @@ class SnakeAndLaddersGame:
check=game_event_check
)
- if reaction.emoji == ROLL_EMOJI:
+ if reaction.emoji == DICE_ROLL_EMOJI:
await self.player_roll(user)
elif reaction.emoji == CANCEL_EMOJI:
if self._is_moderator(user) and user not in self.players: