Ajout du spoil

This commit is contained in:
Admin 2020-04-29 13:18:12 +02:00
parent 52b11452c2
commit cd30d66d72

View file

@ -140,9 +140,10 @@ class Mybot(commands.Cog):
with open(path) as file:
lines = file.read().splitlines()
myline = random.choice(lines)
question, reponse = myline.split(";")
try:
response = "%s" % (myline)
response = '''Question ! : %s Réponse : ||%s||''' % (question, reponse)
except:
response = "Unknow error, try: !contrepeterie [mot clef]"
await ctx.send(response)