send schedule as individual messages per pair

This commit is contained in:
xenofem 2020-08-09 19:54:29 -04:00
parent b74d9a9188
commit f38026fcb1

View file

@ -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))) 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: for matching in schedule:
announcement = 'Next round starting in 30 seconds:\n' await message.channel.send('Next round starting in 30 seconds:')
announcement += '\n'.join('{0} and {1} in {2}'.format(a.mention, b.mention, c.name) for ((a, b), c) in zip(matching, pollination_channels)) for ((a, b), c) in zip(matching, pollination_channels):
await message.channel.send(announcement) await message.channel.send('{0} and {1} in {2}'.format(a.mention, b.mention, c.name))
await countdown(message.channel) await countdown(message.channel)
for ((a, b), c) in zip(matching, pollination_channels): for ((a, b), c) in zip(matching, pollination_channels):
try: try: