fix joke issue

This commit is contained in:
Milka64 2021-02-21 20:45:28 +01:00
parent 5207baf83f
commit a6437ee322

View file

@ -252,7 +252,7 @@ class Mybot(commands.Cog):
ctx.channel.send("%s not found" % folder) ctx.channel.send("%s not found" % folder)
else: else:
audio_file = random.choice(audio_file) audio_file = random.choice(audio_file)
self.sounds.append((audio_file, ctx)) self.sounds.append((audio_file, ctx))
except: except:
e = exc_info()[0] e = exc_info()[0]
await ctx.channel.send("Exception when calling joke: %s\n" % e) await ctx.channel.send("Exception when calling joke: %s\n" % e)