From ce073034e47b31fd15f05a4a08991501cc0e2831 Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Tue, 27 Aug 2019 23:59:27 +0200 Subject: [PATCH] Try spotify after reporting success --- Spotify.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Spotify.py b/Spotify.py index ad92392..5077104 100644 --- a/Spotify.py +++ b/Spotify.py @@ -53,9 +53,12 @@ class Spotify(object): print(str(reaction.message.content)) # debugging with open("lijst.txt", "a") as f: f.write(str(reaction.message.content)+'\n') - self.nummer_toevoegen(str(reaction.message.content)) yield from reaction.message.delete() # verwijder poll yield from reaction.message.channel.send("Dit nummer heeft genoeg stemmen ontvangen en is op de lijst gezet: " + str(reaction.message.content)) + try: + self.nummer_toevoegen(str(reaction.message.content)) + except: + pass # Bij genoeg stemmen tegen elif reaction.emoji == self.thumbs_down and reaction.count >= self.veto_count: stemmen = reaction.message.reactions[0].count - 1 # tel het aantal voor-stemmen