Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Script ¶
type Script struct { Id string Name string Description string Channel ScriptChannel Users []ScriptUser Messages []ScriptMessage Responses []ScriptResponse }
func LoadScriptsFromFile ¶
type ScriptAttachment ¶
type ScriptAttachment struct { Title string TitleLink string Color string AuthorName string `yaml:"author_name"` AuthorImage string `yaml:"author_image"` Fields []ScriptAttachmentField Actions []ScriptAttachmentAction }
type ScriptAttachmentAction ¶
type ScriptAttachmentField ¶
type ScriptChannel ¶
type ScriptMessage ¶
type ScriptMessage struct { UserId string `yaml:"user_id"` Text string Attachments []ScriptAttachment Reactions []ScriptReaction PostDelay int `yaml:"post_delay"` Replies []ScriptMessage }
type ScriptReaction ¶
type ScriptResponse ¶
type ScriptResponse struct { Id string Message ScriptMessage }
type ScriptRunner ¶
type ScriptRunner struct {
// contains filtered or unexported fields
}
func NewScriptRunner ¶
func NewScriptRunner(script Script) *ScriptRunner
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterBotUser ¶
func (*Server) SendWelcomePost ¶
func (*Server) StartScript ¶
func (*Server) TriggerResponse ¶
Click to show internal directories.
Click to hide internal directories.