update versions and change to std logger

This commit is contained in:
Seraphim Strub 2023-04-23 00:33:20 +02:00
parent aa20d59a0f
commit df441014ed
17 changed files with 212 additions and 147 deletions

View file

@ -5,6 +5,7 @@ import (
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"grow.rievo.dev/discordBots/cmd/funbot/imgur"
"log"
"strings"
)
@ -32,7 +33,7 @@ func handlerImg(event *events.ApplicationCommandInteractionCreate) {
}
}(value)
if err != nil {
event.Client().Logger().Error("error on getting link: ", err)
log.Printf("ERROR: error on getting link: %v", err)
return
}
@ -40,7 +41,7 @@ func handlerImg(event *events.ApplicationCommandInteractionCreate) {
SetContent(link).
SetEphemeral(false).Build())
if err != nil {
event.Client().Logger().Error("error on sending response: ", err)
log.Printf("ERROR: error on sending response: %v", err)
return
}
}