The error-messages.toml file contains custom error messages for when commands fail.

Template

quote      = "Failed to get a quote."
joke              = "Failed to get a joke."
meme              = "Failed to get a meme."
waifu             = "Failed to get a waifu image."
duck              = "Failed to get a duck image."
dog               = "Failed to get a dog image."
cat               = "Failed to get a cat image."
chuck             = "Failed to get a Chuck Norris joke."
fact              = "Failed to get a fact."
bible             = "Failed to get a bible verse."
passage_not_found = "Couldn't find bible passage: {{PASSAGE}}"
truth             = "Failed to get a truth question."
dare              = "Failed to get a dare question."
wyr               = "Failed to get a Would You Rather question."
never-hie         = "Failed to get a Never Have I Ever question."
paranoia          = "Failed to get a paranoia question."
calculate         = "Invalid calculation. Use +-*/"
bitcoin           = "Failed to get the current bitcoin price."
currency          = "Unknown currency."
unavailable       = "API unavailable."
 
unknown_command   = "Unknown command."
unknown_argument  = "Unknown argument."
missing_argument  = "Missing argument."
no_attachment     = "No attachment given."
bot_unavailable   = "Bot not available."

Values

Command Error Messages

ValueDescription
quoteError message when the quote API fails
jokeError message when the joke API fails
memeError message when the meme API fails
waifuError message when the waifu API fails
duckError message when the duck API fails
dogError message when the dog API fails
catError message when the cat API fails
chuckError message when the Chuck Norris API fails
factError message when the fact API fails
bibleError message when the bible API fails
passage_not_foundError message when a bible passage is not found (supports {{PASSAGE}} variable)
truthError message when the truth API fails
dareError message when the dare API fails
wyrError message when the wyr API fails
never-hieError message when the NHIE API fails
paranoiaError message when the paranoia API fails
calculateError message for invalid calculations
bitcoinError message when the bitcoin API fails
currencyError message for unknown currency
unavailableError message when an API is unavailable

General Error Messages

ValueDescription
unknown_commandMessage for unknown commands
unknown_argumentMessage for unknown arguments
missing_argumentMessage for missing arguments
no_attachmentMessage when no attachment is provided
bot_unavailableMessage when the bot is unavailable

Examples

Customize error messages

quote    = "Couldn't fetch a quote right now. Please try again later!"
joke     = "My joke database is empty. Please tell me a joke instead!"
meme     = "No memes found. The internet is broken!"

Add custom passage error

passage_not_found = "Chapter not found: {{PASSAGE}}. Try a different reference."