python-zulip-api/contrib_bots/bots/define_bot
Abhijeet Kaur 6dda0eb506 contrib bots: Rename bots to follow a consistent pattern.
Files renamed without any changes.
2017-03-14 13:29:19 -07:00
..
define_bot.py Remove triage_message() function from all the contrib-bots. 2017-02-17 06:51:48 -08:00
readme.md contrib_bots: Restructure bots to follow a consistent structure. 2017-02-10 06:44:03 -08: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.

Correct Word

  • If the user enters a wrong word, like "@define cresh" or "@define crish", then an error message saying no definition is available is displayed.

Wrong Word