update versions and change to std logger
This commit is contained in:
parent
aa20d59a0f
commit
df441014ed
17 changed files with 212 additions and 147 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue