@@ -502,8 +502,6 @@ async def watch2gether_command(ctx: Context, video_url: str = None):
502502
503503# -----------------------------------------------------------------------------
504504
505- CODENAMES_CLOSED_MESSAGE = "✨ _Codenames game ended_"
506-
507505
508506def make_teams (players ):
509507 red , blue = [], []
@@ -522,7 +520,7 @@ def format_team(players):
522520async def codenames_command (ctx : Context , name : str = None ):
523521 name = name or cuteid .cuteid ()
524522 url = f"https://horsepaste.com/{ name } "
525- base_message = f"🕵️ **Codenames** 🕵️\n { url } \n React with 👍 to join a team. React with 🛑 to end the game ."
523+ base_message = f"🕵️ **Codenames** 🕵️\n { url } \n React with 👍 to join a team. React with 🔀 to shuffle the teams ."
526524 logger .info (f"starting codenames game at { url } " )
527525 message = await ctx .send (base_message )
528526
@@ -541,12 +539,8 @@ def check(reaction, user):
541539 reaction , _ = done .pop ().result ()
542540 for future in pending :
543541 future .cancel ()
544- if str (reaction .emoji ) == "🛑" :
545- logger .info ("scrubbing codenames info" )
546- await message .edit (content = CODENAMES_CLOSED_MESSAGE )
547- break
548- elif str (reaction .emoji ) in ("👍" , "🔄" ):
549- if str (reaction .emoji ) == "🔄" :
542+ if str (reaction .emoji ) in ("👍" , "🔀" ):
543+ if str (reaction .emoji ) == "🔀" :
550544 logger .info ("shuffling players" )
551545 random .shuffle (players )
552546 else :
@@ -611,7 +605,6 @@ async def catchphrase_command(ctx: Context, category: str = None):
611605 r"meet\.jit\.si" : MEET_CLOSED_MESSAGE ,
612606 r"Could not create watch2gether" : WATCH2GETHER_CLOSED_MESSAGE ,
613607 r"Watch videos together" : WATCH2GETHER_CLOSED_MESSAGE ,
614- r"Codenames" : CODENAMES_CLOSED_MESSAGE ,
615608 r"Speakeasy" : SPEAKEASY_CLOSED_MESSAGE ,
616609}
617610
0 commit comments