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)