plug.terraria

class immp.plug.terraria.TerrariaMessage(*, text=None, user=None, edited=False, action=False, reply_to=None, joined=None, left=None, title=None, attachments=None, raw=None)

Bases: immp.core.message.Message

Message originating from Terraria.

classmethod from_event(terraria, event)

Convert a ChatSock event to a User.

Parameters
  • terraria (TerrariaPlug) – Related plug instance that provides the event.
  • event (dict) – Raw server event.
Returns

Parsed message .

Return type

TerrariaMessage

class immp.plug.terraria.TerrariaPlug(name, config, host)

Bases: immp.core.util.HTTPOpenable, immp.core.plug.Plug

Plug for a Terraria server running TShock.