summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-12-07 09:53:31 +0100
committermakefu <github@syntax-fehler.de>2020-12-07 09:53:31 +0100
commit2a1e868d2a0b136135fd8c9a3f6f8e47bb2dece9 (patch)
tree8b9e13ed95340f14b9958a42eb301afff33fd54c
parent66fca80e30ae6c933433fcfc4664d162defb45b3 (diff)
bot.py: fix kalauer saving
-rw-r--r--kalauerbot/bot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kalauerbot/bot.py b/kalauerbot/bot.py
index c4359d7..95aaac6 100644
--- a/kalauerbot/bot.py
+++ b/kalauerbot/bot.py
@@ -207,7 +207,7 @@ class Kalauerbot(MatrixBot):
entry = db[name]
if entry.get('record',None) != list: entry['record'] = []
say(f'Thank you for recording the kalauer! It is now associated to the user {name}')
- entry['record'].append({ 'date': datetime.now().isoformat(), 'kalauer': text})
+ entry['record'].append({ 'date': datetime.now().isoformat(), 'text': text})
self.save_db()
elif command == "kalauer:":
text = args.strip()
@@ -219,7 +219,7 @@ class Kalauerbot(MatrixBot):
entry['record'] = []
entry['record'].append({ 'date':
datetime.now().isoformat(),
- 'kalauer': text})
+ 'text': text})
break
else:
say('cannot associate your username to a kalauer user, please run `!identify <name>` before')