Private functions#

Moobius._set_loguru#

Sets the log levels etc. Set after setting self._config.

Signature:

  • **Moobius._set_loguru**(self)

Parameters:

  • __(this class constructor accepts no arguments):__

Returns:

  • None.

Raises:

  • (this function does not raise any notable errors)

Moobius._convert_message_content#

Signature:

  • **Moobius._convert_message_content**(self, subtype, content)

Parameters:

  • __subtype:__ Subtype.

  • __content:__ The string or dict-valued content,.

Returns:

  • The MessageContent object.

Raises:

  • (this function does not raise any notable errors)

Moobius._update_rec#

Use this function in the in the “recipients” fields of the websocket. Converts lists into group_id strings, creating a group if need be, when.

Signature:

  • **Moobius._update_rec**(self, recipients, is_m_down, channel_id)

Parameters:

  • __recipients:__ Recipients.

  • __is_m_down:__ True if a message down.

  • __channel_id=None:__ The channel_id.

Returns:

  • The converted list.

Raises:

  • (this function does not raise any notable errors)

Moobius._checkin#

Called as a rate task, used to resync users, etc. Only called after on_start().

Signature:

  • **Moobius._checkin**(self)

Parameters:

  • __(this class constructor accepts no arguments):__

Returns:

  • None.

Raises:

  • (this function does not raise any notable errors)

Moobius.__str__#

The string output function for debugging.

Signature:

  • **Moobius.__str__**(self)

Parameters:

  • __(this class constructor accepts no arguments):__

Returns:

  • The easy-to-read string summary.

Raises:

  • (this function does not raise any notable errors)

Moobius.__repr__#

The string output function for debugging.

Signature:

  • **Moobius.__repr__**(self)

Parameters:

  • __(this class constructor accepts no arguments):__

Returns:

  • The easy-to-read string summary.

Raises:

  • (this function does not raise any notable errors)

Moobius.handle_received_payload._group2ids#

Signature:

  • **Moobius.handle_received_payload._group2ids**(g_id)

Parameters:

  • __g_id:__ Gorup id.

Returns:

  • The list of character id strings.

Raises:

  • (this function does not raise any notable errors)

Private attributes#

Moobius.handle_received_payload._group2ids

Moobius.handle_received_payload._group2ids