MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / hasEnabledBots

Function hasEnabledBots

agent/app/service/agents_channels.go:1556–1563  ·  view source on GitHub ↗
(bots []T)

Source from the content-addressed store, hash-verified

1554}
1555
1556func hasEnabledBots[T enabledBot](bots []T) bool {
1557 for _, bot := range bots {
1558 if bot.IsEnabled() {
1559 return true
1560 }
1561 }
1562 return false
1563}
1564
1565func defaultQQBot() dto.AgentQQBotBot {
1566 return dto.AgentQQBotBot{

Callers 5

UpdateFeishuConfigMethod · 0.85
setTelegramConfigFunction · 0.85
setDiscordConfigFunction · 0.85
setDingTalkConfigFunction · 0.85
setQQBotConfigFunction · 0.85

Calls 1

IsEnabledMethod · 0.65

Tested by

no test coverage detected