Chore: trim debug message
All checks were successful
All checks were successful
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -84,7 +84,6 @@ services:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
volumes:
|
||||
redis: {}
|
||||
postgres: {}
|
||||
|
||||
Reference in New Issue
Block a user