errbot.backends.text module

class errbot.backends.text.TextBackend(config)[source]

Bases: errbot.core.ErrBot

__init__(config)[source]
add_reaction(msg: errbot.backends.base.Message, reaction: str) → None[source]
build_identifier(text_representation)[source]
build_reply(msg, text=None, private=False, threaded=False)[source]
change_presence(status: str = 'online', message: str = '') → None[source]
mode
prefix_groupchat_reply(message, identifier)[source]
query_room(room)[source]
readline_support()[source]
remove_reaction(msg: errbot.backends.base.Message, reaction: str) → None[source]
rooms
send_message(msg)[source]
serve_forever()[source]
class errbot.backends.text.TextOccupant(person, room)[source]

Bases: errbot.backends.text.TextPerson, errbot.backends.base.RoomOccupant

__init__(person, room)[source]
room
class errbot.backends.text.TextPerson(person, client=None, nick=None, fullname=None)[source]

Bases: errbot.backends.base.Person

Simple Person implementation which represents users as simple text strings.

__init__(person, client=None, nick=None, fullname=None)[source]
aclattr
client
fullname
nick
person
class errbot.backends.text.TextPlugin(bot, name=None)[source]

Bases: errbot.botplugin.BotPlugin

Internal to TextBackend.

asadmin(msg, args)[source]

This puts you in a 1-1 chat with the bot.

asuser(msg, args)[source]

This puts you in a room with the bot. You can specify a name otherwise it will default to 'luser'.

inperson(msg, args)[source]

This puts you in a 1-1 chat with the bot.

inroom(msg, args)[source]

This puts you in a room with the bot.

class errbot.backends.text.TextRoom(name, bot)[source]

Bases: errbot.backends.base.Room

__init__(name, bot)[source]
create()[source]
destroy()[source]
exists
invite(*args)[source]
join(username=None, password=None)[source]
joined
leave(reason=None)[source]
occupants
topic
errbot.backends.text.borderless_ansi()[source]

This makes a converter from markdown to ansi (console) format. It can be called like this: from errbot.rendering import ansi md_converter = ansi() # you need to cache the converter

ansi_txt = md_converter.convert(md_txt)