MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / warpTargetIDAndType

Function warpTargetIDAndType

plugin/minecraftobserver/model.go:202–214  ·  view source on GitHub ↗

warpTargetIDAndType 转换消息信息到订阅的目标ID和类型

(groupID, userID int64)

Source from the content-addressed store, hash-verified

200
201// warpTargetIDAndType 转换消息信息到订阅的目标ID和类型
202func warpTargetIDAndType(groupID, userID int64) (int64, int64) {
203 // 订阅
204 var targetID int64
205 var targetType int64
206 if groupID == 0 {
207 targetType = targetTypeUser
208 targetID = userID
209 } else {
210 targetType = targetTypeGroup
211 targetID = groupID
212 }
213 return targetID, targetType
214}
215
216// formatSubStatusChangeText 格式化状态变更文本
217func formatSubStatusChangeText(oldStatus, newStatus *serverStatus) string {

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected