ai work
This commit is contained in:
@@ -37,7 +37,7 @@ func RegisterEconomy(bot *laniakea.Bot) {
|
||||
|
||||
func about(msgCtx *laniakea.MsgContext, _ *laniakea.DatabaseContext) {
|
||||
out := []string{
|
||||
fmt.Sprintf("Go: %s", "1.25.0"),
|
||||
fmt.Sprintf("Go: %s", "1.25.5"),
|
||||
fmt.Sprintf("Версия laniakea: %s", laniakea.VersionString),
|
||||
}
|
||||
msgCtx.Answer(strings.Join(out, "\n"))
|
||||
@@ -45,6 +45,8 @@ func about(msgCtx *laniakea.MsgContext, _ *laniakea.DatabaseContext) {
|
||||
|
||||
func passiveIncome(b *laniakea.Bot) {
|
||||
for {
|
||||
time.Sleep(time.Minute * 5)
|
||||
|
||||
users, err := psql.GetAllUsers()
|
||||
if err != nil {
|
||||
b.Logger().Error(err)
|
||||
@@ -97,8 +99,6 @@ func passiveIncome(b *laniakea.Bot) {
|
||||
|
||||
b.Logger().Debug(fmt.Sprintf("У %d было пассивно собрано. След. сбор через час\n", user.ID))
|
||||
}
|
||||
|
||||
time.Sleep(time.Second * 5)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user