How to customise your bot?
Cliq provides you "Bot Handlers", that are pre-defined responses to any specific actions/ messages in a bot. Take a look at the list of handlers responsible for personalizing a bot :
Menu :
List of actions pinned to the "Actions" menu in the chat window. A maximum of 5 actions can be pinned under the actions menu.
Message Handler:
Messages handlers will be triggered when a bot receives a message! The bot creator has the potential to post messages through a bot. The creator can either choose to post the message to all the users subscribed or only a few selected users. Learn more about the attributes passed to the deluge task when a message handler is triggered (Clicking here will navigate to the obj ref page)
Status Change Handler:
Status handlers are executed when a user changes only his custom status. This is not applicable for default statuses in Cliq.
Welcome Handler:
A welcome handler is used to define the custom message when a user subsrcibes to a bot.
Mention Handler:
The mention handler is executed and renders a response when a bot is "mentioned" in a chat or channel. The mentions handler when triggered passes the following attributes to a deluge code. They are:
- Message
- Mentions
- User
- Chat (Use the Object reference guide to learn more about each of the above parameters.)
Incoming Webhook Handler:
This handler is an easy way to post messages from external services, with the help of their outgoing webhooks. Trigger your handler to render a response when external services share messages in your bot.