Created
October 4, 2015 22:46
-
-
Save gbin/1429d337e076ec7620fc to your computer and use it in GitHub Desktop.
Errbot recipes: how to persist data
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
from errbot import BotPlugin, botcmd | |
class RemindMe(BotPlugin): | |
@botcmd | |
def store(self, msg, args): | |
self['key'] = args | |
@botcmd | |
def recall(self, msg, args): | |
return self['key'] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment