mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 05:30:07 +08:00
fix(emozi): login
This commit is contained in:
parent
6349f38d57
commit
23c0949388
@ -27,6 +27,7 @@ func init() {
|
||||
usr := emozi.Anonymous()
|
||||
data, err := os.ReadFile(en.DataFolder() + "user.txt")
|
||||
refresh := func() {
|
||||
go func() {
|
||||
t := time.NewTicker(time.Hour)
|
||||
defer t.Stop()
|
||||
for range t.C {
|
||||
@ -38,6 +39,7 @@ func init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
}
|
||||
refresher := sync.Once{}
|
||||
if err == nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user