Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/assimon/ai-anti-bot
/ functions
Functions
43 in github.com/assimon/ai-anti-bot
⨍
Functions
43
◇
Types & classes
8
↓ 6 callers
Function
IncrementVerificationTimes
(user *UserInfo)
database/user_info.go:46
↓ 3 callers
Function
BanChatMember
(c tb.Context, res *adapter.RecognizeResult)
bot/func.go:57
↓ 3 callers
Function
Identifier
()
bot/func.go:16
↓ 3 callers
Function
IncrementNumberOfSpeeches
(user *UserInfo)
database/user_info.go:30
↓ 3 callers
Function
NewChatGpt
(option adapter.Option)
ai/chatgpt/chatgpt.go:19
↓ 3 callers
Function
PreCheck
(c tb.Context)
bot/handle.go:23
↓ 3 callers
Function
isManage
(chat *tb.Chat, userId int64)
bot/func.go:30
↓ 2 callers
Function
AllAd
(c tb.Context)
bot/handle.go:243
↓ 2 callers
Method
RecognizeImageMessage
(ctx context.Context, userInfo, file string)
adapter/iModel.go:9
↓ 1 callers
Function
AddAdvertise
(advertise Advertise)
database/advertise.go:17
↓ 1 callers
Function
AllAdvertise
()
database/advertise.go:21
↓ 1 callers
Function
DeleteAdvertise
(id int64)
database/advertise.go:31
↓ 1 callers
Function
GetEfficientAdvertise
()
database/advertise.go:26
↓ 1 callers
Function
GetUserInfo
(user *UserInfo)
database/user_info.go:62
↓ 1 callers
Function
LoadAdMenuBtn
(menu *tb.ReplyMarkup)
bot/func.go:114
↓ 1 callers
Function
New
(model string, option adapter.Option)
ai/builder.go:14
↓ 1 callers
Function
ProcessNickname
(nickname string)
bot/func.go:130
↓ 1 callers
Method
RecognizeImageMessage
(ctx context.Context, userInfo, file string)
ai/chatgpt/chatgpt.go:57
↓ 1 callers
Method
RecognizeTextMessage
(ctx context.Context, userInfo, message string)
ai/chatgpt/chatgpt.go:30
↓ 1 callers
Method
RecognizeTextMessage
(ctx context.Context, userInfo, message string)
adapter/iModel.go:8
↓ 1 callers
Function
RegisterCommands
()
bot/root.go:42
↓ 1 callers
Function
RegisterHandle
()
bot/root.go:51
↓ 1 callers
Function
SaveUserInfo
(user *UserInfo)
database/user_info.go:22
↓ 1 callers
Function
Start
()
bot/root.go:14
↓ 1 callers
Function
WaitSignalChina
()
pkg/os/os.go:9
↓ 1 callers
Function
isOwner
(userId int64)
bot/func.go:43
Function
AddAd
(c tb.Context)
bot/handle.go:217
Function
CreatorCmdMiddleware
(next tb.HandlerFunc)
bot/middleware.go:49
Function
DelAd
(c tb.Context)
bot/handle.go:262
Function
OnChatMemberMessage
(c tb.Context)
bot/handle.go:205
Function
OnPhotoMessage
(c tb.Context)
bot/handle.go:152
Function
OnStickerMessage
(c tb.Context)
bot/handle.go:99
Function
OnTextMessage
(c tb.Context)
bot/handle.go:45
Function
PreCmdMiddleware
(next tb.HandlerFunc)
bot/middleware.go:40
Function
PreGroupMiddleware
(next tb.HandlerFunc)
bot/middleware.go:21
Method
TableName
()
database/advertise.go:13
Method
TableName
()
database/user_info.go:18
Function
TestChatGptRecognizeImageMessage
(t *testing.T)
test/chatgpt_test.go:26
Function
TestChatGptRecognizeTextMessage
(t *testing.T)
test/chatgpt_test.go:13
Function
init
()
database/root.go:12
Function
init
()
config/config.go:13
Function
isManageMiddleware
(next tb.HandlerFunc)
bot/middleware.go:9
Function
main
()
cmd/main.go:9