From 3cb8050e8629dd4db02da754e50d551b6e2d101e Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 5 Sep 2018 20:58:49 +0000 Subject: [PATCH] Combine !play and next message --- argondjbot.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/argondjbot.py b/argondjbot.py index 98a000a..ed0a607 100644 --- a/argondjbot.py +++ b/argondjbot.py @@ -178,13 +178,16 @@ class Playlist: self.playing_video = video, player self.playing_until = time.time() + duration - text = self.format_play(video, player) - msg = await room.send(text) + play_text = self.format_play(video, player) + #msg = await room.send(play_text) next_video = self.next() video, player = next_video if next_video else (None, None) - text = self.format_next(video, player) - await room.send(text, msg.mid) + next_text = self.format_next(video, player) + #await room.send(next_text, msg.mid) + + text = f"{play_text}\n{next_text}" + await room.send(text) await asyncio.sleep(duration)