Chat

Description

Processes chat into easy to use events

Events

chat

Chat event was recieved

Playload

{'position': position, 'raw': json_data, 'text': text, 'type': chat_type, 'message': msg, 'name': name, 'uuid': uuid}
position

int

Where the text should be displayed

raw

dict

Raw json data from the chat message

text

string

The text of the chat message

type

string

The type of message (achievement, admin, announcement, emote, incoming, outgoing, text)

message

string

message

uuid

string

UUID of the player who sent the message

Methods and Attributes

class spockbot.plugins.helpers.chat.ChatCore(net)
chat(message)
whisper(player, message)