Skip to content

Commands

Tunaki edited this page Dec 26, 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
 rmblacklist   - Removes the given statement from blacklist
 rmwhitelist   - Removes the given statement from whitelist
 opt-in        - Notifies the user of the requested posts
 opt-out       - Unlists the user from notifications
 remind        - Adds a remainder to the list of requests
 showreqs      - Shows the list of requests
 rmreq         - Removes the request from the list of requests
 quota         - Returns the remaining API Qouta
 fetch         - will fetch reports that have not received feedback
 send          - send feedback to those reports in the top down order

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:

  • @Natty opt-in [python] all : This notifies the user of all the posts identified by the bot tagged python, only when they are present in the room.
  • @Natty 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.
  • @Natty opt-in [python] all always : This notifies the user of all the posts identified by the bot tagged python, whether the user is present in the room, or not.
  • @Natty 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.
  • @Natty 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.
  • @Natty opt-in all all always : This notifies the user of all the posts identified by the bot, 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.

fetch command format

The fetch command also takes a few arguments that can be used to get the posts that have not received feedback. The command alone, without any arguments returns a list of answerIds. The other options are

  • links : This returns the answerIds of the posts along with the links to those posts. This is useful to send bulk feedback.
  • posts : This calls the API again and returns the posts with the latest data. This works only when there are less than 10 posts available in the feedback queue.
  • amount : This returns the number of available posts in the feedback queue.

send command format

The send command can be used to send mass feedback. However the feedback must be in the order of what is present in the feedback queue. The argument reverse can be used to send the feedback in the bottoms-up manner.

Clone this wiki locally