🎨 🔥 统一 seed

This commit is contained in:
fumiama
2022-02-18 20:20:25 +08:00
parent 3838d74cb8
commit bd6925f2f1
7 changed files with 8 additions and 17 deletions

View File

@@ -342,7 +342,6 @@ func init() { // 插件主体
return temp[i].Get("last_sent_time").Int() < temp[j].Get("last_sent_time").Int()
})
temp = temp[math.Max(0, len(temp)-10):]
rand.Seed(time.Now().UnixNano())
who := temp[rand.Intn(len(temp))]
if who.Get("user_id").Int() == ctx.Event.SelfID {
ctx.SendChain(message.Text("幸运儿居然是我自己"))