Chore: remove unused ticker

This commit is contained in:
Grail Finder
2025-12-14 13:34:26 +03:00
parent 37b88e7879
commit 82ffc364d3
2 changed files with 2 additions and 14 deletions

11
bot.go
View File

@@ -841,15 +841,6 @@ func updateModelLists() {
}
}
func updateModelListsTicker() {
updateModelLists() // run on the start
ticker := time.NewTicker(time.Minute * 1)
for {
<-ticker.C
updateModelLists()
}
}
func init() {
var err error
cfg, err = config.LoadConfig("config.toml")
@@ -910,5 +901,5 @@ func init() {
if cfg.STT_ENABLED {
asr = extra.NewSTT(logger, cfg)
}
go updateModelListsTicker()
go updateModelLists()
}