Versions in this module Expand all Collapse all v1 v1.2.0 Dec 7, 2023 Changes in this version + var Categories types.Embed[string] + var Commands types.Embed[*Command] + var GlobalMiddlewares types.Embed[context.MiddlewareFunc] + var Middlewares types.Embed[context.MiddlewareFunc] + type App struct + func NewRoxyBase(options *options.Options) (*App, error) + func (app *App) AddNewCategory(category string) + func (app *App) AddNewCommand(command Command) + func (app *App) AddNewMiddleware(middleware context.MiddlewareFunc) + func (app *App) Client() *whatsmeow.Client + func (app *App) ClientJID() waTypes.JID + func (app *App) FindMessageByID(jid waTypes.JID, id string) *events.Message + func (app *App) GetAllChats() []*events.Message + func (app *App) GetChatInJID(jid waTypes.JID) []*events.Message + func (app *App) GetStatusMessages() []*events.Message + func (app *App) HandleEvents(event interface{}) + func (app *App) InitializeClient() error + func (app *App) SendMessage(to waTypes.JID, message *waProto.Message, extra ...whatsmeow.SendRequestExtra) (whatsmeow.SendResponse, error) + func (app *App) Shutdown() + func (app *App) UpsertMessages(jid waTypes.JID, message []*events.Message) + type Command struct + AdditionalValues map[string]interface{} + Aliases []string + Cache bool + Category string + Description string + GroupOnly bool + HideFromHelp bool + Middleware context.MiddlewareFunc + Name string + OnlyAdminGroup bool + OnlyIfBotAdmin bool + PrivateOnly bool + RunFunc context.RunFunc + func (c *Command) Validate() + type Muxer struct + Categories *xsync.MapOf[string, string] + CommandParser func(str string) (prefix string, cmd string, ok bool) + CommandResponseCache *xsync.MapOf[string, *waProto.Message] + Commands *xsync.MapOf[string, *Command] + GlobalMiddlewares *xsync.MapOf[string, context.MiddlewareFunc] + GroupCache *xsync.MapOf[string, []*waTypes.GroupInfo] + Locals *xsync.MapOf[string, string] + Log waLog.Logger + MessageTimeout time.Duration + Middlewares *xsync.MapOf[string, context.MiddlewareFunc] + Options *options.Options + PollingChan chan *context.PollingState + PollingState *xsync.MapOf[string, *context.PollingState] + QuestionChan chan *context.QuestionState + QuestionState *xsync.MapOf[string, *context.QuestionState] + SuggestionModel *fuzzy.Model + func NewMuxer(log waLog.Logger, options *options.Options, appMethods types.AppMethods) *Muxer + func (muxer *Muxer) AddCommand(cmd *Command) + func (muxer *Muxer) AddCommandParser(context func(str string) (prefix string, cmd string, ok bool)) + func (muxer *Muxer) AddGlobalMiddleware(middleware context.MiddlewareFunc) + func (muxer *Muxer) AddMiddleware(middleware context.MiddlewareFunc) + func (muxer *Muxer) CacheAllGroup() + func (muxer *Muxer) Clean() + func (muxer *Muxer) FindGroupByJid(groupJid waTypes.JID) (group *waTypes.GroupInfo, err error) + func (muxer *Muxer) GenerateSuggestionModel() + func (muxer *Muxer) GetActiveCommand() []*Command + func (muxer *Muxer) GetActiveGlobalMiddleware() []context.MiddlewareFunc + func (muxer *Muxer) GetActiveMiddleware() []context.MiddlewareFunc + func (muxer *Muxer) GetAllGroups() (group []*waTypes.GroupInfo, err error) + func (muxer *Muxer) IsClientGroupAdmin(chat waTypes.JID) (bool, error) + func (muxer *Muxer) IsGroupAdmin(chat waTypes.JID, jid any) (bool, error) + func (muxer *Muxer) RunCommand(c *whatsmeow.Client, evt *events.Message) + func (muxer *Muxer) SendEmojiMessage(event *events.Message, emoji string) + func (muxer *Muxer) SuggestCommand(event *events.Message, prefix, command string) + func (muxer *Muxer) UnCacheOneGroup(info *events.GroupInfo, joined *events.JoinedGroup) v1.0.3 Aug 3, 2023