This commit is contained in:
2026-01-13 15:36:55 +03:00
parent 4925283ede
commit 9bd5354250
12 changed files with 56 additions and 5795 deletions

View File

@@ -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)
}
}