zabbix_bot.py
def _room_init(room):
    """Boilerplate code for identifying the room.

    :param room: reference to the room
    :type room: matrix room object
    :return: room_id, zabbix_config
    """
    room_id = room.room_id.split(':')[0]
    logging.debug('got a message from room: %s', room_id)
    if room_id in config:
        zabbix_config = _zabbix_config(room_id)

    else:
        raise RuntimeError('room_id "{0}" is unkown'.format(room_id))

    return (room_id, zabbix_config)
Boilerplate code for identifying the room.

    :param room: reference to the room
    :type room: matrix room object
    :return: room_id, zabbix_config
    
Boilerplate code for identifying the room.
Boilerplate code for identifying the room .
def _room_init(room):
    room_id = room.room_id.split(':')[0]
    logging.debug('got a message from room: %s', room_id)
    if room_id in config:
        zabbix_config = _zabbix_config(room_id)
    else:
        raise RuntimeError('room_id "{0}" is unkown'.format(room_id))
    return (room_id, zabbix_config)
def _room_init ( room ) : room_id = room . room_id . split ( ':' ) [ 0 ] logging . debug ( 'got a message from room: %s' , room_id ) if room_id in config : zabbix_config = _zabbix_config ( room_id ) else : raise RuntimeError ( 'room_id "{0}" is unkown' . format ( room_id ) ) return ( room_id , zabbix_config )
Boilerplate code for identifying the room.
Boilerplate code for identifying the room .
"""Boilerplate code for identifying the room.

    :param room: reference to the room
    :type room: matrix room object
    :return: room_id, zabbix_config
    """
None
room
reference to the room
reference to the room