Merge branch 'master' of ssh://vvvvvvaria.org:12345/varia/bots
This commit is contained in:
commit
00805bc7e7
@ -8,8 +8,6 @@ db = 'storage.json'
|
||||
def readdb():
|
||||
storage = open(db, 'r').read()
|
||||
messages = json.loads(storage)
|
||||
lastid = sorted(list(messages.keys()))
|
||||
nextid = str(int(lastid[-1])+1)
|
||||
return messages
|
||||
|
||||
def writedb(message):
|
||||
|
Loading…
Reference in New Issue
Block a user