2016-12-21 11:16:59 -05:00
|
|
|
# DefineBot
|
|
|
|
|
|
|
|
* This is a bot that defines a word that the user inputs. Whenever the user
|
|
|
|
inputs a message starting with '@define', the bot defines the word
|
|
|
|
that follows.
|
|
|
|
|
|
|
|
* The definitions are brought to the website using an API. The bot posts the
|
|
|
|
definition of the word to the stream from which the user inputs the message.
|
|
|
|
If the user inputs a word that does not exist or a word that is incorrect or
|
|
|
|
is not in the dictionary, the definition is not displayed.
|
|
|
|
|
|
|
|
* For example, if the user says "@define crash", all the meanings of crash
|
|
|
|
appear, each in a separate line.
|
|
|
|
|
2017-03-05 13:42:39 -05:00
|
|
|
![Correct Word](assets/correct_word.png)
|
2016-12-21 11:16:59 -05:00
|
|
|
|
|
|
|
* If the user enters a wrong word, like "@define cresh" or "@define crish",
|
|
|
|
then an error message saying no definition is available is displayed.
|
|
|
|
|
2017-03-05 13:42:39 -05:00
|
|
|
![Wrong Word](assets/wrong_word.png)
|
2016-12-21 11:16:59 -05:00
|
|
|
|