Ajout du spoil
This commit is contained in:
parent
52b11452c2
commit
cd30d66d72
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue