zulip_bots: Make StateHandler optional.

This has the convenient side-effect of making
the bot_handler.storage attribute read-only.
This commit is contained in:
derAnfaenger 2017-11-13 11:49:23 +01:00 committed by showell
parent f41030b515
commit 2a74ad11c5
4 changed files with 42 additions and 12 deletions

View file

@ -2,6 +2,11 @@
class IncrementorHandler(object):
META = {
'name': 'Incrementor',
'description': 'Example bot to test the update_message() function.',
'uses_storage': True,
}
def usage(self):
return '''