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