|
@ -121,7 +121,7 @@ class Logbot(Bot): |
|
|
"""Save new entry to database.""" |
|
|
"""Save new entry to database.""" |
|
|
keys = [x for x in self.db[message.room]["messages"].keys()] |
|
|
keys = [x for x in self.db[message.room]["messages"].keys()] |
|
|
keys.sort(key=int) |
|
|
keys.sort(key=int) |
|
|
date = datetime.now().strftime("%a, %d %b %Y %H:%M:%S") |
|
|
date = datetime.now().isoformat() |
|
|
if not keys: |
|
|
if not keys: |
|
|
new_key = "0" |
|
|
new_key = "0" |
|
|
else: |
|
|
else: |
|
|