Skip to content

Instantly share code, notes, and snippets.

@gbin
Created October 4, 2015 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbin/1429d337e076ec7620fc to your computer and use it in GitHub Desktop.
Save gbin/1429d337e076ec7620fc to your computer and use it in GitHub Desktop.
Errbot recipes: how to persist data
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