mirror of https://github.com/bonobonet/botty
UrbandDict
- Removed now-completed TODOs - Now on no definitions we send an error message
This commit is contained in:
parent
f8a2ab8265
commit
d2423d986a
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue