Versions in this module Expand all Collapse all v1 v1.0.2 May 30, 2025 Changes in this version + const BetaGoUpdateChanID + const BotOpenID + const ChannelAddReaction + const ChannelAdded + const ChannelDelReaction + const ChannelDeleted + const ChannelMessageRemove + const ChannelMessageUpdate + const ChannelModified + const ChannelTopMessage + const ChannelTopMessageCancel + const ChatPath + const DBHostCluster + const DBHostCompose + const DBHostTest + const FontPath + const ImagePath + const LarkMsgIndex + const LarkResourceTypeImage + const LarkResourceTypeSticker + const MODEL_TYPE_NORMAL + const MODEL_TYPE_REASON + const MemberExited + const MemberJoined + const MemberOffline + const MemberOnline + const MemberUpdate + const NetEaseAPIDomainCompose + const PublicIPURL + const SelfCheckMessage + const ShortCommandAddAdmin + const ShortCommandHelp + const ShortCommandHitokoto + const ShortCommandMusic + const ShortCommandPing + const ShortCommandReconnect + const ShortCommandRemoveAdmin + const ShortCommandRoll + const ShortCommandShowAdmin + const ShortCommandShowCal + const ShortCommandShowCalLocal + const TimeFormat + var BetaGoTest = os.Getenv("IS_TEST") == "true" + var BotIdentifier = os.Getenv("BOT_IDENTIFY") + var CommandPrefix = "(met)" + RobotID + "(met)" + var CommentsURL = os.Getenv("COM_URL") + var CommitMessage = os.Getenv("COM_MES") + var ErrArgsIncompelete = errors.New("ArgsIncompeleteError") + var ErrCheckUsage = errors.New("Usage") + var ErrCommandIncomplete = errors.New("CommandIncompleteError") + var ErrCommandNotFound = errors.New("CommandNotFoundError") + var ErrStageError = errors.New("Stage Error") + var ErrStageSkip = errors.New("Stage Skip") + var ErrStageWarn = errors.New("Stage Warn") + var ErrorOverReq = fmt.Errorf("每秒仅允许5次请求,请求过快,请稍后重试") + var FlowControl = &FlowControlType + var GlobalDBConn *gorm.DB + var GlobalSession = kook.New(os.Getenv("BOTAPI"), plog.NewLogger(&log.Logger{ ... })) + var HTMLURL = os.Getenv("HTML_URL") + var HttpClient = resty.New() + var HttpClientWithProxy = resty.New().SetProxy(os.Getenv("PRIVATE_PROXY")) + var IsCluster = os.Getenv("IS_CLUSTER") == "true" + var IsCompose = os.Getenv("IS_COMPOSE") == "true" + var IsTest = os.Getenv("IS_TEST") == "true" + var NotifierChanID = "2472013302648680" + var ReconnectChan = make(chan string) + var RobotID = os.Getenv("ROBOT_ID") + var RobotName = os.Getenv("ROBOT_NAME") + var SelfCheckChan = make(chan string, 1) + var TestChanID = os.Getenv("TEST_CHAN_ID") + type CardMessageColModule struct + Text []struct{ ... } + Type string + type CardMessageModule struct + Cover string + Src string + Title string + Type string + type CardMessageTextModule struct + Text struct{ ... } + Type string + type FlowControlType struct + Cnt int + M sync.RWMutex + func (fc *FlowControlType) Add() + func (fc *FlowControlType) Sub() + func (fc *FlowControlType) Top() (err error) + type LarkFunctionEnum string + const LarkFunctionRandomReact + const LarkFunctionRandomRepeat + const LarkFunctionWordReply + type LarkInteraction string + const LarkInteractionAddReaction + const LarkInteractionCallBot + const LarkInteractionSendMsg + type ReplyType string + const ReplyTypeImg + const ReplyTypeText + type WordMatchType string + const MatchTypeFull + const MatchTypeRegex + const MatchTypeSubStr