From a403422e10c0977eeaa9ac829c9a839b1ed68c25 Mon Sep 17 00:00:00 2001 From: BFlow Date: Tue, 28 Apr 2020 15:08:20 +0200 Subject: [PATCH] correction lines --- kabot/kabot/kabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index e06d8cd..23f1fce 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -87,7 +87,7 @@ class Mybot(commands.Cog): @commands.command(help='count lines numbers in quote file') async def lines(self, ctx): - path = here + '/' + ctx.channel + path = '/data/log/%s.log' % ctx.channel with open(path, 'r') as f: lines = f.read().splitlines() nb_lines = len(lines)