Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzz1y committed Aug 28, 2023
1 parent 4ddb4dd commit 8125f70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions internal/bot/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ func (b *Bot) err(evt *event.Event, err error) {
default:
if errors.Is(err, context.DeadlineExceeded) {
b.markdownResponse(evt, true, timeoutMsg)
} else {
b.reactionResponse(evt, "❌")
}
}
}
3 changes: 2 additions & 1 deletion internal/bot/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const (
**Notes**
- You can use the first letter of a command as an alias. For example, "!i" for "!image".
- If you wish to terminate the current processing, simply delete your message from the chat.
- The bot responds with ❌ reaction if there are any errors. Contact the administrator if you see this.
`
timeoutMsg = "Timeout error. Please try again. If issue persists, contact the administrator."
unknownCommandMsg = "Unknown command. Please use the `!help` command to access the available commands"
unknownCommandMsg = "Unknown command. Please use the `!help` command to access the available commands."
)

0 comments on commit 8125f70

Please sign in to comment.