From f38026fcb12879359d5689190afaff2b52a4a1b9 Mon Sep 17 00:00:00 2001 From: xenofem Date: Sun, 9 Aug 2020 19:54:29 -0400 Subject: [PATCH] send schedule as individual messages per pair --- waggle-dance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/waggle-dance.py b/waggle-dance.py index bde3988..fe415d9 100755 --- a/waggle-dance.py +++ b/waggle-dance.py @@ -182,9 +182,9 @@ async def handle_guild_message(message): await message.channel.send("{} Welcome to pollination! You'll be randomly paired up, moved into separate voice channels, spend some time chatting, and then move to a new channel and meet somebody else. Each round will last 5 minutes, and there'll be {} rounds total. I'll announce when your time is nearly up so you can wrap up your conversations, and I'll automatically move you to a different voice channel at the start of each new round. If you keep this text channel open, you'll get audible countdowns via text-to-speech at the end of each round. **Feel free to leave at any time if you need to. You won't get moved into new voice channels if you disconnect from voice.** If you find yourself alone in a channel, the person you were paired with for that round may have left; just relax and take a break for 5 minutes. Have fun!".format(mention_all, len(schedule))) for matching in schedule: - announcement = 'Next round starting in 30 seconds:\n' - announcement += '\n'.join('{0} and {1} in {2}'.format(a.mention, b.mention, c.name) for ((a, b), c) in zip(matching, pollination_channels)) - await message.channel.send(announcement) + await message.channel.send('Next round starting in 30 seconds:') + for ((a, b), c) in zip(matching, pollination_channels): + await message.channel.send('{0} and {1} in {2}'.format(a.mention, b.mention, c.name)) await countdown(message.channel) for ((a, b), c) in zip(matching, pollination_channels): try: