From 6d65fae90aaa9d447fac11c559f0258db4ed383c Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 22 Jan 2021 00:30:48 +0100 Subject: [PATCH] small update --- LogBot/logbot.conf | 5 ----- LogBot/logbot.py | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 LogBot/logbot.conf diff --git a/LogBot/logbot.conf b/LogBot/logbot.conf deleted file mode 100644 index de02217..0000000 --- a/LogBot/logbot.conf +++ /dev/null @@ -1,5 +0,0 @@ -[logbot] -account = bot@vvvvvvaria.org -password = streaming -nick = logbot -rooms = testtesttest@muc.vvvvvvaria.org, ibugev@muc.vvvvvvaria.org \ No newline at end of file diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 282c63b..524831e 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -42,7 +42,7 @@ def deletefromdb(id): def writelog(messages): template = jinja2.Template(open('index.html.j2').read()) - with open('index.html','w') as out: + with open('log.html','w') as out: html = template.render(messages=messages) out.write(html) @@ -92,4 +92,4 @@ Print this message writelog(messages) return self.reply(reply, room=message.room) -logbot() \ No newline at end of file +logbot()