Convert each record from (time, events, message) to {'time': time, 'events': events, 'message': message}.
Change records[botusername, groupid] to records[botusername][groupid].
Convert {'message': message} to {'message_id': message['message_id'], 'message_type': ...} (to prevent lists of dicts — entities, photo, etc. — from needing to be stored).
Store curmap instead of events.
Either:
Convert all timestamps (eventtime as well as start and end for all events) from floats to ints, or:
I think I have https://github.com/nmlorg/metabot/issues/97#issuecomment-2190517451 mostly ready to go, but it's another hairy change that I want to break apart and commit in pieces (though each commit will introduce new incompatible data changes).
(time, events, message)
to{'time': time, 'events': events, 'message': message}
.records[botusername, groupid]
torecords[botusername][groupid]
.{'message': message}
to{'message_id': message['message_id'], 'message_type': ...}
(to prevent lists of dicts —entities
,photo
, etc. — from needing to be stored).curmap
instead ofevents
.eventtime
as well asstart
andend
for all events) from floats to ints, or:ImplicitTrackingDict
/TrackingList
to store floats._daily_messages
setrecords = multibot.conf['reminders']
and get_handle_alerts
to userecords = multibot.conf['alerts']
.