-
Notifications
You must be signed in to change notification settings - Fork 22
Xatkit Discord Platform
Gwendal Daniel edited this page Aug 19, 2019
·
5 revisions
Receive and send messages from Discord. This platform is bundled with the Xatkit release.
The Discord platform is a concrete implementation of the ChatPlatform.
The Discord platform defines the following providers:
Provider | Type | Context Parameters | Description |
---|---|---|---|
ChatProvider | Intent | - chat.channel : the identifier of the channel that sent the message- chat.username : the name of the user that sent the message- chat.rawMessage : the raw message sent by the user (before NLP processing) |
The chat intent provider receives messages from a communication channel and translate them into Xatkit-compatible intents (inherited from ChatPlatform) |
DiscordIntentProvider | Intent | - discord.channel : the identifier of the Discord channel that sent the message- discord.username : the name of the Discord user that sent the message- discord.rawMessage : the raw message sent by the user (before NLP processing) |
The Discord intent provider receives messages from Discord and translates them into Xatkit-compatible intents. Note that discord.channel , discord.username , and discord.rawMessage contain the same values as chat.channel , chat.username , and chat.rawMessage
|
Action | Parameters | Return | Return Type | Description |
---|---|---|---|---|
PostMessage | - message (String): the message to post- channel (String): the identfier of the Discord channel to post the message to |
The posted message | String | Posts the provided message to the given Discord channel (inherited from ChatPlatform) |
Reply | - message (String): the message to post as a reply |
The posted message | String | Posts the provided message as a reply to a received message (inherited from ChatPlatform) |
The discord platform supports the following configuration options
Key | Values | Description | Constraint |
---|---|---|---|
xatkit.discord.token |
String | The Discord token used by Xatkit to deploy the bot | Mandatory |
Note: if the Discord platform is used as a concrete implementation of the ChatPlatform the following property must be set in the Xatkit configuration:
xatkit.platforms.abstract.ChatPlatform = com.xatkit.plugins.discord.platform.DiscordPlatform
- Getting Started
- Configuring your bot
- Integrating an Intent Recognition Provider
- Adding a bot to your website
- Deploying on Slack
- Basic concepts
- Intents and Entities
- States, Transitions, and Context
- Default and Local Fallbacks
- Core Library