Documentation ¶
Index ¶
- Constants
- func LogFile() (*os.File, error)
- type App
- func (a *App) DeleteChatMessage(cid string, cm ChatMessage) error
- func (a *App) NewChannel(url string, name string) (string, error)
- func (a *App) NewChatMessage(cid string, cm ChatMessage) (string, error)
- func (a *App) Save() error
- func (a *App) UpdateChatMessage(cid string, cm ChatMessage) (string, error)
- type Channel
- type ChatBot
- type ChatBotSession
- type ChatMessage
Constants ¶
View Source
const ( CIDLen = 8 DefaultInterval = 10 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
func (*App) DeleteChatMessage ¶
func (a *App) DeleteChatMessage(cid string, cm ChatMessage) error
func (*App) NewChatMessage ¶
func (a *App) NewChatMessage(cid string, cm ChatMessage) (string, error)
func (*App) UpdateChatMessage ¶
func (a *App) UpdateChatMessage(cid string, cm ChatMessage) (string, error)
type ChatBot ¶
type ChatBot struct { Messages map[string]ChatMessage `json:"messages"` Session ChatBotSession `json:"session"` }
type ChatBotSession ¶ added in v0.4.0
type ChatBotSession struct { Client rumblelivestreamlib.NewClientOptions `json:"client"` Username string `json:"username"` }
type ChatMessage ¶
type ChatMessage struct { ID string `json:"id"` AsChannel bool `json:"as_channel"` Command string `json:"command"` Interval time.Duration `json:"interval"` OnCommand bool `json:"on_command"` OnCommandFollower bool `json:"on_command_follower"` OnCommandRantAmount int `json:"on_command_rant_amount"` OnCommandSubscriber bool `json:"on_command_subscriber"` Text string `json:"text"` TextFile string `json:"text_file"` }
Click to show internal directories.
Click to hide internal directories.