MCPcopy Create free account
hub / github.com/FloatTech/ZeroBot-Plugin / level

Method level

plugin/chatcount/model.go:197–204  ·  view source on GitHub ↗

level 方法,封装了 getLevel 函数的逻辑

(t int)

Source from the content-addressed store, hash-verified

195
196// level 方法,封装了 getLevel 函数的逻辑
197func (l *leveler) level(t int) int {
198 for i := len(l.levelArray) - 1; i >= 0; i-- {
199 if t >= l.levelArray[i] {
200 return i + 1
201 }
202 }
203 return 0
204}
205
206// sortChatTime chatTime排序数组
207type sortChatTime []chatTime

Callers 1

updateChatTimeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected