Skip to content

Commit 497cfaf

Browse files
committed
add debug logging
1 parent 79bd069 commit 497cfaf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/shibesbot/discord.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ func (sb *Shibesbot) initDiscord() error {
6969
return err
7070
}
7171

72+
sb.log.Debug("updating Discord command list")
7273
for _, cmd := range commands {
73-
_, err := sb.session.ApplicationCommandCreate(sb.session.State.User.ID, "", cmd)
74-
if err != nil {
74+
sb.log.Debugf("adding command %s", cmd.Name)
75+
if _, err := sb.session.ApplicationCommandCreate(sb.session.State.User.ID, "", cmd); err != nil {
7576
return err
7677
}
7778
}

0 commit comments

Comments
 (0)