Skip to content

Introduce _bot_globals for persistent data storage between bot executions#274

Open
fred777 wants to merge 5 commits into
jkingsman:mainfrom
fred777:fred777-add_bot_globals
Open

Introduce _bot_globals for persistent data storage between bot executions#274
fred777 wants to merge 5 commits into
jkingsman:mainfrom
fred777:fred777-add_bot_globals

Conversation

@fred777

@fred777 fred777 commented May 27, 2026

Copy link
Copy Markdown

This will allow things like counting the number of "pings" sent from specific senders, discover first-time-senders, etc.

@fred777 fred777 marked this pull request as ready for review May 27, 2026 08:39
@jkingsman

Copy link
Copy Markdown
Owner

Hmmm interesting. It wouldn't be persistent between restarts, but perhaps that's intentional. I'm not sure if I'd want to make this a bare global or set up some kind of proper store for it. I like the concept, though. I'll take a look and get back to you.

@jkingsman jkingsman closed this in f7bab95 Jun 2, 2026
@jkingsman jkingsman reopened this Jun 2, 2026
@jkingsman

Copy link
Copy Markdown
Owner

Whoops, didn't mean to close that. issue # typo.

@fred777

fred777 commented Jun 2, 2026

Copy link
Copy Markdown
Author

So far I was just too lazy to implement some sort of permanent storage. I developed an over-engineered ping bot and one day I felt like it needs to be able to remember something from past bot executions, but not necessarily between restarts of the whole application.

A proper store would be ok as well, but I didn't want to change any api interfaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants