Skip to content

Commands

Bhargav Rao edited this page Oct 1, 2016 · 7 revisions

The list of commands are

 help          - Returns the information regarding the chatbot
 commands      - Returns the list of commands associated with this bot
 alive         - Returns a test reply to inform that the bot is alive
 check         - Checks the sanity of a given post
 addsalute     - Adds a given statement to the list of salutations
 whitelist     - Adds a given statement to the list of whitelisted words
 blacklist     - Adds a given statement to the list of blacklisted words
 iswhitelisted - Checks if the given statement is whitelisted
 isblacklisted - Checks if the given statement is blacklisted
 opt-in        - Notifies the user of the posts that he has opted in
 opt-out       - Unlists the user from notifications

opt-in command format

The command to opt-in for a tag needs three arguments. They are the tag, the type of the post and whether to notify when the user is inside the room or not. The third argument defaults to notifying the user only when they are inside room.

E.g:

  • @NATOBot opt-in [python] all : This notifies the user of all the posts in NATO tagged python, only when they are present in the room.
  • @NATOBot opt-in [python] naa : This notifies the user of all the posts that are identified as NAA by the bot and tagged python, only when they are present in the room.
  • @NATOBot opt-in [python] all always : This notifies the user of all the posts in NATO tagged python, whether the user is present in the room, or not.
  • @NATOBot opt-in [python] naa always : This notifies the user of all the posts that are identified as NAA by the bot and tagged python, whether the user is present in the room, or not.
  • @NATOBot opt-in all naa : This notifies the user of all the posts that are identified as NAA by the bot only when they are present in the room.
  • @NATOBot opt-in all all always : This notifies the user of all the posts in NATO, whether the user is present in the room, or not.

opt-out command format

The opt-out command unlists the users only when the arguments are the same as those provided when they opted in.

Clone this wiki locally