Documentation
¶
Index ¶
- func SyntaxError(error string) *syntaxError
- type Bot
- type Command
- type IrdilleChannel
- type IrdilleMedia
- type IrdilleRequest
- func (r *IrdilleRequest) Args() []string
- func (r *IrdilleRequest) ArgsIndex() []int
- func (r *IrdilleRequest) Bot() *Bot
- func (r *IrdilleRequest) Command() string
- func (r *IrdilleRequest) Message() string
- func (r *IrdilleRequest) Name() string
- func (r *IrdilleRequest) SendID() string
- func (r *IrdilleRequest) UserID() string
- type Media
- type Request
- type StreamMedia
- type StreamRequest
- func (r *StreamRequest) Args() []string
- func (r *StreamRequest) ArgsIndex() []int
- func (r *StreamRequest) Bot() *Bot
- func (r *StreamRequest) Command() string
- func (r *StreamRequest) Message() string
- func (r *StreamRequest) Name() string
- func (r *StreamRequest) SendID() string
- func (r *StreamRequest) UserID() string
- type TelegramMedia
- type TelegramRequest
- func (r *TelegramRequest) Args() []string
- func (r *TelegramRequest) ArgsIndex() []int
- func (r *TelegramRequest) Bot() *Bot
- func (r *TelegramRequest) Command() string
- func (r *TelegramRequest) Message() string
- func (r *TelegramRequest) Name() string
- func (r *TelegramRequest) SendID() string
- func (r *TelegramRequest) UserID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SyntaxError ¶
func SyntaxError(error string) *syntaxError
Types ¶
type IrdilleChannel ¶
type IrdilleMedia ¶
type IrdilleMedia struct { Host string Port int Tls bool TlsConfig *tls.Config Password string ChannelNames []string Channels []IrdilleChannel Nick string Username string ReconnectDelay time.Duration NewNick func(nick string) string PrivMsgIgnored bool Dcc func() (ip string, port int) OnJoin func(req *IrdilleRequest) OnChannelMessage func(req *IrdilleRequest, response string) // response is the bot optional response to the message through commands OnSending func(message string) string // contains filtered or unexported fields }
type IrdilleRequest ¶
type Request ¶
type Request interface { Bot() *Bot Command() string Args() []string ArgsIndex() []int Message() string UserID() string // globally unique username Name() string // friendly user display name SendID() string // globally unique ID to send messages back later with Send() // contains filtered or unexported methods }
type StreamMedia ¶
type StreamMedia struct {
URL string
}
type StreamRequest ¶
type StreamRequest struct {
// contains filtered or unexported fields
}
type TelegramMedia ¶
type TelegramMedia struct { APIKey string // contains filtered or unexported fields }
type TelegramRequest ¶
type TelegramRequest struct { Username string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.