Chore: trim debug message
All checks were successful
Go test / run-go-vet (push) Successful in 6s
Go test / check-swagger-up-to-date (push) Successful in 11s
Go test / run-go-test (push) Successful in 23s
Go test / cleanup-go-test (push) Successful in 4s
Go test / release-image (push) Successful in 3m37s

This commit is contained in:
2025-12-13 06:35:29 +08:00
parent 47f09b733a
commit 7c89c0a144
2 changed files with 0 additions and 11 deletions

View File

@@ -1,7 +1,6 @@
package bot
import (
"context"
"fmt"
"net/http"
"strconv"
@@ -9,10 +8,8 @@ import (
"time"
"gitea.konchin.com/go2025/backend/handlers/api"
"gitea.konchin.com/go2025/backend/tracing"
"github.com/bwmarrin/discordgo"
"github.com/spf13/viper"
"go.uber.org/zap"
"golang.org/x/exp/rand"
)
@@ -28,10 +25,6 @@ func (b *Bot) fetchAliases() {
aliases[alias.Name] = alias.Id
}
b.aliases = aliases
tracing.Logger.Ctx(context.Background()).
Info("nmsl",
zap.String("aliases", fmt.Sprintf("%+v", aliases)))
}
time.Sleep(10 * time.Second)
@@ -48,9 +41,6 @@ func (b *Bot) onMessageCreate(
}
key := strings.ToLower(strings.TrimSpace(m.Content))
tracing.Logger.Ctx(context.Background()).
Info("wtf",
zap.String("key", key))
if id, ok := b.aliases[key]; ok {
var res []api.GetImagesOutputImage

View File

@@ -84,7 +84,6 @@ services:
- backend
restart: unless-stopped
volumes:
redis: {}
postgres: {}