Chore: trim debug message
All checks were successful
All checks were successful
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package bot
|
package bot
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
@@ -9,10 +8,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.konchin.com/go2025/backend/handlers/api"
|
"gitea.konchin.com/go2025/backend/handlers/api"
|
||||||
"gitea.konchin.com/go2025/backend/tracing"
|
|
||||||
"github.com/bwmarrin/discordgo"
|
"github.com/bwmarrin/discordgo"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"go.uber.org/zap"
|
|
||||||
"golang.org/x/exp/rand"
|
"golang.org/x/exp/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -28,10 +25,6 @@ func (b *Bot) fetchAliases() {
|
|||||||
aliases[alias.Name] = alias.Id
|
aliases[alias.Name] = alias.Id
|
||||||
}
|
}
|
||||||
b.aliases = aliases
|
b.aliases = aliases
|
||||||
|
|
||||||
tracing.Logger.Ctx(context.Background()).
|
|
||||||
Info("nmsl",
|
|
||||||
zap.String("aliases", fmt.Sprintf("%+v", aliases)))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(10 * time.Second)
|
time.Sleep(10 * time.Second)
|
||||||
@@ -48,9 +41,6 @@ func (b *Bot) onMessageCreate(
|
|||||||
}
|
}
|
||||||
|
|
||||||
key := strings.ToLower(strings.TrimSpace(m.Content))
|
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 {
|
if id, ok := b.aliases[key]; ok {
|
||||||
var res []api.GetImagesOutputImage
|
var res []api.GetImagesOutputImage
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ services:
|
|||||||
- backend
|
- backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
redis: {}
|
redis: {}
|
||||||
postgres: {}
|
postgres: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user