UrbandDict

- Removed now-completed TODOs
- Now on no definitions we send an error message
This commit is contained in:
Tristan B. Velloza Kildaire 2023-07-03 14:27:34 +02:00
parent f8a2ab8265
commit d2423d986a
1 changed files with 2 additions and 7 deletions

View File

@ -82,11 +82,10 @@ public final class UrbanDict : Mod
getBot().channelMessage(bold("Author: ")~author, channel);
getBot().channelMessage(bold("Permalink: ")~permalink, channel);
}
// If no definitions are found
else
{
// TODO: Handl eno defintions
// TODO: Send result below
// getBot().channelMessage(translatedText, channel);
getBot().channelMessage("No definitions for '"~searchTerm~"'", channel);
}
}
// On network error
@ -99,10 +98,6 @@ public final class UrbanDict : Mod
{
getBot().channelMessage("There was a parsing error when looking up on urban dictionary", channel);
}
getBot().channelMessage("hehe", channel);
}
else
{