fix log
This commit is contained in:
parent
901119008f
commit
07e2ac607e
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ def main():
|
||||||
if bot.user in message.mentions \
|
if bot.user in message.mentions \
|
||||||
and len(message.mentions) < 3 \
|
and len(message.mentions) < 3 \
|
||||||
and len(message.content.splitlines()) == 1:
|
and len(message.content.splitlines()) == 1:
|
||||||
path = '/tmp/%s.log' % message.channel
|
path = '/home/mika/.kabot/%s.log' % message.channel
|
||||||
with open(path, 'r') as f :
|
with open(path, 'r') as f :
|
||||||
lines = f.read().splitlines()
|
lines = f.read().splitlines()
|
||||||
if not message.content in lines:
|
if not message.content in lines:
|
||||||
|
|
Loading…
Reference in a new issue