Versions in this module Expand all Collapse all v0 v0.5.0 Oct 18, 2022 Changes in this version type Connection + func (con *Connection) ModList() map[string]interface{} + func (con *Connection) Modules() []seras.Module v0.1.0 Sep 16, 2022 Changes in this version + var ErrIncorrectType = errors.New("config is not of type: 'discord'") + type BotParser struct + func (c *BotParser) Parse(val map[string]interface{}) (seras.Bot, error) + type Config struct + Admins []string + Mods []string + Token string + func ParseConfig(val map[string]interface{}) (Config, error) + type Connection struct + func New(config Config) (*Connection, error) + func (con *Connection) AddMods(mods []seras.Module) + func (con *Connection) Close() error + func (con *Connection) Connect() (seras.Stream, error) + func (con *Connection) IsAdmin(userId string) bool + func (con *Connection) Mods() []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 + func (r *Connection) Bold(str string) string + func (r *Connection) Italicize(str string) string