correction contrepetrie
This commit is contained in:
parent
f6e2efb0ca
commit
52b11452c2
1 changed files with 2 additions and 1 deletions
|
@ -137,7 +137,8 @@ class Mybot(commands.Cog):
|
|||
async def contrepeterie(self, ctx, *args):
|
||||
response = None
|
||||
path = here + '/ressources/contrepeteries.txt'
|
||||
lines = open(path).read().splitlines()
|
||||
with open(path) as file:
|
||||
lines = file.read().splitlines()
|
||||
myline = random.choice(lines)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue