Documentation
¶
Index ¶
- Constants
- func Bind(e *echo.Echo, _myDice *dice.DiceManager)
- func DiceAdvancedConfigGet(c echo.Context) error
- func DiceAdvancedConfigSet(c echo.Context) error
- func DiceAllCommand(c echo.Context) error
- func DiceConfig(c echo.Context) error
- func DiceConfigSet(c echo.Context) error
- func DiceExec(c echo.Context) error
- func DiceMailTest(c echo.Context) error
- func DiceNewVersionUpload(c echo.Context) error
- func DiceRecentMessage(c echo.Context) error
- func Error(c *echo.Context, errMsg string, res Response) error
- func GetHexData(c echo.Context, method string, name string) (value []byte, finished bool)
- func ImConnections(c echo.Context) error
- func ImConnectionsAddBuiltinGocq(c echo.Context) error
- func ImConnectionsAddBuiltinLagrange(c echo.Context) error
- func ImConnectionsAddDingTalk(c echo.Context) error
- func ImConnectionsAddDiscord(c echo.Context) error
- func ImConnectionsAddDodo(c echo.Context) error
- func ImConnectionsAddGocqSeparate(c echo.Context) error
- func ImConnectionsAddKook(c echo.Context) error
- func ImConnectionsAddLagrangeGO(c echo.Context) error
- func ImConnectionsAddMinecraft(c echo.Context) error
- func ImConnectionsAddOfficialQQ(c echo.Context) error
- func ImConnectionsAddRed(c echo.Context) error
- func ImConnectionsAddReverseWs(c echo.Context) error
- func ImConnectionsAddSatori(c echo.Context) error
- func ImConnectionsAddSealChat(c echo.Context) error
- func ImConnectionsAddSlack(c echo.Context) error
- func ImConnectionsAddTelegram(c echo.Context) error
- func ImConnectionsAddWalleQ(c echo.Context) error
- func ImConnectionsCaptchaSet(c echo.Context) error
- func ImConnectionsDel(c echo.Context) error
- func ImConnectionsGet(c echo.Context) error
- func ImConnectionsGetQQVersions(c echo.Context) error
- func ImConnectionsGocqConfigDownload(c echo.Context) error
- func ImConnectionsGocqhttpRelogin(c echo.Context) error
- func ImConnectionsQrcodeGet(c echo.Context) error
- func ImConnectionsSetData(c echo.Context) error
- func ImConnectionsSetEnable(c echo.Context) error
- func ImConnectionsSmsCodeGet(c echo.Context) error
- func ImConnectionsSmsCodeSet(c echo.Context) error
- func ImConnectionsWalleQRelogin(c echo.Context) error
- func Int64ToBytes(i int64) []byte
- func ReverseSlice(s interface{})
- func Success(c *echo.Context, res Response) error
- type AddDiscordEcho
- type DiceConfigInfo
- type IP
- type LevelConfig
- type ReplyConfigInfo
- type Response
- type SensitiveRelatedWord
- type SensitiveRelatedWords
- type SensitiveWord
- type SensitiveWords
- type VersionDetail
Constants ¶
View Source
const ( Image resourceType = "image" Unknown resourceType = "unknown" )
View Source
const CodeAlreadyExists = 602
Variables ¶
This section is empty.
Functions ¶
func DiceAdvancedConfigGet ¶
func DiceAdvancedConfigSet ¶
func DiceAllCommand ¶
func DiceConfig ¶
func DiceConfigSet ¶
func DiceMailTest ¶
func DiceNewVersionUpload ¶
func DiceRecentMessage ¶
func GetHexData ¶
func ImConnections ¶
func ImConnectionsAddDiscord ¶
func ImConnectionsAddDodo ¶
func ImConnectionsAddKook ¶
func ImConnectionsAddRed ¶
func ImConnectionsAddSatori ¶
func ImConnectionsAddSlack ¶
func ImConnectionsAddWalleQ ¶
func ImConnectionsCaptchaSet ¶
func ImConnectionsDel ¶
func ImConnectionsGet ¶
func ImConnectionsQrcodeGet ¶
func ImConnectionsSetData ¶
func ImConnectionsSetEnable ¶
func ImConnectionsSmsCodeGet ¶
func ImConnectionsSmsCodeSet ¶
func Int64ToBytes ¶
func ReverseSlice ¶
func ReverseSlice(s interface{})
Types ¶
type AddDiscordEcho ¶
type DiceConfigInfo ¶
type DiceConfigInfo struct {
// 注:form其实不需要
CommandPrefix []string `json:"commandPrefix" form:"commandPrefix"` // 指令前缀
DiceMasters []string `json:"diceMasters" form:"diceMasters"` // 骰主设置,需要格式: 平台:帐号
NoticeIds []string `json:"noticeIds"` // 通知设置,需要格式: 平台:帐号
OnlyLogCommandInGroup bool `json:"onlyLogCommandInGroup" form:"onlyLogCommandInGroup"` // 日志中仅记录命令
OnlyLogCommandInPrivate bool `json:"onlyLogCommandInPrivate" form:"onlyLogCommandInPrivate"` // 日志中仅记录命令
WorkInQQChannel bool `json:"workInQQChannel"` // 在QQ频道中开启
MessageDelayRangeStart float64 `json:"messageDelayRangeStart" form:"messageDelayRangeStart"` // 指令延迟区间
MessageDelayRangeEnd float64 `json:"messageDelayRangeEnd" form:"messageDelayRangeEnd"`
UIPassword string `json:"uiPassword" form:"uiPassword"`
HelpDocEngineType int `json:"helpDocEngineType"`
MasterUnlockCode string `json:"masterUnlockCode" form:"masterUnlockCode"`
ServeAddress string `json:"serveAddress" form:"serveAddress"`
MasterUnlockCodeTime int64 `json:"masterUnlockCodeTime"`
LogPageItemLimit int64 `json:"logPageItemLimit"`
FriendAddComment string `json:"friendAddComment"`
QQChannelAutoOn bool `json:"QQChannelAutoOn"`
QQChannelLogMessage bool `json:"QQChannelLogMessage"`
RefuseGroupInvite bool `json:"refuseGroupInvite"` // 拒绝群组邀请
QuitInactiveThreshold float64 `json:"quitInactiveThreshold"` // 退出不活跃群组阈值(天)
QuitInactiveBatchSize int64 `json:"quitInactiveBatchSize"` // 退出不活跃群组的批量大小
QuitInactiveBatchWait int64 `json:"quitInactiveBatchWait"` // 退出不活跃群组的批量等待时间(分)
DefaultCocRuleIndex string `json:"defaultCocRuleIndex"` // 默认coc index
MaxExecuteTime string `json:"maxExecuteTime"` // 最大骰点次数
MaxCocCardGen string `json:"maxCocCardGen"` // 最大coc制卡数
ExtDefaultSettings []*dice.ExtDefaultSettingItem `yaml:"extDefaultSettings" json:"extDefaultSettings"` // 新群扩展按此顺序加载
BotExtFreeSwitch bool `json:"botExtFreeSwitch"`
TrustOnlyMode bool `json:"trustOnlyMode"`
AliveNoticeEnable bool `json:"aliveNoticeEnable"`
AliveNoticeValue string `json:"aliveNoticeValue"`
ReplyDebugMode bool `json:"replyDebugMode"`
CustomReplyConfigEnable bool `json:"customReplyConfigEnable"` // 是否开启reply
LogSizeNoticeEnable bool `json:"logSizeNoticeEnable"` // 开启日志数量提示
LogSizeNoticeCount int `json:"logSizeNoticeCount"` // 日志数量提示阈值,默认500
TextCmdTrustOnly bool `json:"textCmdTrustOnly"` // text命令只允许信任用户和master
IgnoreUnaddressedBotCmd bool `json:"ignoreUnaddressedBotCmd"` // 不响应群聊裸bot指令
QQEnablePoke bool `json:"QQEnablePoke"` // QQ允许戳一戳
PlayerNameWrapEnable bool `json:"playerNameWrapEnable"` // 玩家名外框
MailEnable bool `json:"mailEnable"`
MailFrom string `json:"mailFrom"` // 邮箱来源
MailPassword string `json:"mailPassword"` // 邮箱密钥/密码
MailSMTP string `json:"mailSmtp"` // 邮箱 smtp 地址
RateLimitEnabled bool `json:"rateLimitEnabled"` // 是否开启限速
PersonalReplenishRate string `json:"personalReplenishRate"` // 个人自定义速率
PersonalReplenishBurst int64 `json:"personalBurst"` // 个人自定义上限
GroupReplenishRate string `json:"groupReplenishRate"` // 群组自定义速率
GroupReplenishBurst int64 `json:"groupBurst"` // 群组自定义上限
}
type LevelConfig ¶
type ReplyConfigInfo ¶
type SensitiveRelatedWord ¶
type SensitiveRelatedWords ¶
type SensitiveRelatedWords []SensitiveRelatedWord
func (SensitiveRelatedWords) Len ¶
func (srs SensitiveRelatedWords) Len() int
func (SensitiveRelatedWords) Less ¶
func (srs SensitiveRelatedWords) Less(i, j int) bool
func (SensitiveRelatedWords) Swap ¶
func (srs SensitiveRelatedWords) Swap(i, j int)
type SensitiveWord ¶
type SensitiveWord struct {
Main string `json:"main"`
Level censor.Level `json:"level"`
Related SensitiveRelatedWords `json:"related"`
}
type SensitiveWords ¶
type SensitiveWords []*SensitiveWord
func (SensitiveWords) Len ¶
func (sws SensitiveWords) Len() int
func (SensitiveWords) Less ¶
func (sws SensitiveWords) Less(i, j int) bool
func (SensitiveWords) Swap ¶
func (sws SensitiveWords) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.