Documentation ¶
Index ¶
- Variables
- type BotParser
- type Config
- type Connection
- func (con *Connection) AddMods(mods []seras.Module)
- func (con *Connection) Bold(str string) string
- func (con *Connection) Close() error
- func (con *Connection) Connect() (seras.Stream, error)
- func (con *Connection) IsAdmin(userId string) bool
- func (con *Connection) Italicize(str string) string
- func (con *Connection) ModList() map[string]interface{}
- func (con *Connection) Modules() []seras.Module
- func (con *Connection) Reply(msg seras.Message, content string) error
- func (con *Connection) Send(msg seras.Message) error
- func (con *Connection) TimeoutUser(channel string, user string, until time.Time) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIncorrectType = errors.New("config is not of type: 'discord'")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Token string seras.BaseConnection }
func ParseConfig ¶
ParseConfig TODO: I seriously need like an internal lib to map this automatically.
type Connection ¶
func New ¶
func New(config Config) (*Connection, error)
func (*Connection) AddMods ¶
func (con *Connection) AddMods(mods []seras.Module)
func (*Connection) Bold ¶
func (con *Connection) Bold(str string) string
func (*Connection) Close ¶
func (con *Connection) Close() error
func (*Connection) IsAdmin ¶
func (con *Connection) IsAdmin(userId string) bool
func (*Connection) Italicize ¶
func (con *Connection) Italicize(str string) string
func (*Connection) ModList ¶ added in v0.5.0
func (con *Connection) ModList() map[string]interface{}
func (*Connection) Modules ¶ added in v0.5.0
func (con *Connection) Modules() []seras.Module
func (*Connection) TimeoutUser ¶
Click to show internal directories.
Click to hide internal directories.