Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[remind] [minor] Add backreference functionality to modules/calc.py #34

Open
gkistler opened this issue Nov 19, 2014 · 3 comments
Open
Assignees

Comments

@gkistler
Copy link
Collaborator

Allow for the following:

<User> .c 5 + 5
<pyBurlyBot> 5 + 5 = 10
<User> .c * 500
<pyBurlyBot> 10 * 500 = 5,000

Some quick thoughts:

  • Before this was per-channel, but it might be a better idea to make this per-user instead.
  • Not really critical to persist this stuff to the database, this would probably be a good fit for a state helper.
@gkistler gkistler self-assigned this Nov 19, 2014
@Clam-
Copy link
Owner

Clam- commented Nov 30, 2014

Regarding state, I wasn't overly keen on using state since it seems kind of useless and waste of overheads, but it certainly could have a dictionary or something for modules to store some data in. Maybe there should be an API for modules to have access to in-memory key/value store thing. I suppose modules could use their own dictionary or something.

@Clam-
Copy link
Owner

Clam- commented Dec 7, 2014

I use database to store last seen youtube URL and will use it for last seen normal URL so I don't think it would be terrible to use it for last user calculation either.

@Clam-
Copy link
Owner

Clam- commented Feb 4, 2015

Current implementation of calc makes this very unlikely to happen.

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

No branches or pull requests

2 participants