errbot.backends.null module¶
- classerrbot.backends.null.NullBackend(*args, **kwargs)[source] ¶
Bases:
ErrBot- build_reply(msg, text=None, private=False, threaded=False)[source] ¶
Should be implemented by the backend
- change_presence(status:str='online', message:str='') → None[source] ¶
Signal a presence change for the bot. Should be overridden by backends with a super().send_message() call.
- conn=<errbot.backends.null.ConnectionMock object>¶
- propertymode¶
- prefix_groupchat_reply(message, identifier)[source] ¶
Patches message with the conventional prefix to ping the specific contact For example: @gbin, you forgot the milk !
- query_room(room)[source] ¶
Query a room for information.
- Parameters:
room – The room to query for.
- Returns:
An instance of
Room.
- rooms()[source] ¶
Return a list of rooms the bot is currently in.
- Returns:
A list of
Roominstances.
- running=True¶
- serve_forever()[source] ¶
Connect the back-end to the server and serve forever.
Back-ends MAY choose to re-implement this method, in which case they are responsible for implementing reconnection logic themselves.
Back-ends SHOULD trigger
connect_callback()anddisconnect_callback()themselves after connection/disconnection.
Previous: errbot.backends.irc module
|
Next: errbot.backends.telegram_messenger module