Update pipeline

And commit half-baked code restructure
This commit is contained in:
Michał Gdula 2025-04-28 22:32:30 +01:00
parent 5d67b2e2b0
commit 2e5f4bce11
11 changed files with 32 additions and 59 deletions

View file

@ -8,7 +8,7 @@ import (
"strings"
"syscall"
"github.com/Fluffy-Bean/lynxie/utils"
"github.com/Fluffy-Bean/lynxie/internal/color"
"github.com/bwmarrin/discordgo"
)
@ -132,7 +132,7 @@ func printHelp(a *App, h *Handler) {
Embed: &discordgo.MessageEmbed{
Title: "Help",
Description: strings.Join(commands, "\n"),
Color: utils.ColorFromRGB(255, 255, 255),
Color: color.RGBToDiscord(255, 255, 255),
},
Reference: h.Reference,
})
@ -145,7 +145,7 @@ func printError(a *App, h *Handler, e Error) {
Embed: &discordgo.MessageEmbed{
Title: "Error",
Description: e.Msg,
Color: utils.ColorFromRGB(255, 0, 0),
Color: color.RGBToDiscord(255, 0, 0),
},
Reference: h.Reference,
})