Introduce _bot_globals for persistent data storage between bot executions#274
Open
fred777 wants to merge 5 commits into
Open
Introduce _bot_globals for persistent data storage between bot executions#274fred777 wants to merge 5 commits into
fred777 wants to merge 5 commits into
Conversation
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. |
Owner
|
Whoops, didn't mean to close that. issue # typo. |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This will allow things like counting the number of "pings" sent from specific senders, discover first-time-senders, etc.