Skip to content

Commit

Permalink
Added debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
1nv8rzim committed Sep 6, 2023
1 parent 1a12442 commit bc72f35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions commands/scheduled/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ func updateOBIII(s *discordgo.Session, ctx ddtrace.SpanContext) {
)
defer span.Finish()

logging.Debug(s, "Checking for update", nil, span)

update, err := helpers.UpdateMainBranch()
if err != nil {
logging.Error(s, err.Error(), nil, span)
Expand All @@ -39,6 +41,8 @@ func updateOBIII(s *discordgo.Session, ctx ddtrace.SpanContext) {
logging.Error(s, err.Error(), nil, span)
return
}
} else {
logging.Debug(s, "No update available", nil, span)
}
}

Expand Down
2 changes: 1 addition & 1 deletion commands/slash/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func Update() *structs.SlashCommand {
err = s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseChannelMessageWithSource,
Data: &discordgo.InteractionResponseData{
Content: "No update available; forcing update\nBot will be up temporarily once done updating",
Content: "Update available; restarting now\nBot will be up temporarily once done updating",
Flags: discordgo.MessageFlagsEphemeral,
},
})
Expand Down

0 comments on commit bc72f35

Please sign in to comment.