correction lines

This commit is contained in:
BFlow 2020-04-28 15:08:20 +02:00
parent 0422668097
commit a403422e10

View file

@ -87,7 +87,7 @@ class Mybot(commands.Cog):
@commands.command(help='count lines numbers in quote file') @commands.command(help='count lines numbers in quote file')
async def lines(self, ctx): async def lines(self, ctx):
path = here + '/' + ctx.channel path = '/data/log/%s.log' % ctx.channel
with open(path, 'r') as f: with open(path, 'r') as f:
lines = f.read().splitlines() lines = f.read().splitlines()
nb_lines = len(lines) nb_lines = len(lines)