Merge branch 'master' of ssh://vvvvvvaria.org:12345/varia/bots

This commit is contained in:
manetta 2021-01-22 10:21:51 +01:00
commit 00805bc7e7

View File

@ -8,8 +8,6 @@ db = 'storage.json'
def readdb(): def readdb():
storage = open(db, 'r').read() storage = open(db, 'r').read()
messages = json.loads(storage) messages = json.loads(storage)
lastid = sorted(list(messages.keys()))
nextid = str(int(lastid[-1])+1)
return messages return messages
def writedb(message): def writedb(message):