Versions in this module Expand all Collapse all v0 v0.0.1 Jan 18, 2019 Changes in this version + type Script struct + Channel ScriptChannel + Description string + Id string + Messages []ScriptMessage + Name string + Responses []ScriptResponse + Users []ScriptUser + func LoadScriptsFromFile(filepath string) ([]Script, error) + func (s *Script) RunScript(teamId, botId, userId string, api plugin.API) + func (s *Script) TriggerResponse(responseId, channelId, userId string, api plugin.API) error + type ScriptAttachment struct + Actions []ScriptAttachmentAction + AuthorImage string + AuthorName string + Color string + Fields []ScriptAttachmentField + Title string + TitleLink string + type ScriptAttachmentAction struct + Name string + ResponseId string + type ScriptAttachmentField struct + Short bool + Title string + Value string + type ScriptChannel struct + Description string + Id string + Name string + type ScriptMessage struct + Attachments []ScriptAttachment + PostDelay int + Reactions []ScriptReaction + Replies []ScriptMessage + Text string + UserId string + type ScriptReaction struct + Delay int + Id string + UserId string + type ScriptResponse struct + Id string + Message ScriptMessage + type ScriptRunner struct + func NewScriptRunner(script Script) *ScriptRunner + type ScriptUser struct + Bot bool + Id string + Name string + Position string + type Server struct + func NewServer(api plugin.API) *Server + func (s *Server) RegisterBotUser() error + func (s *Server) SendWelcomePost(channelId string) + func (s *Server) Start() error + func (s *Server) StartScript(teamId, userId, scriptId string) error + func (s *Server) TriggerResponse(channelId, userId, scriptId, responseId string) error