botpress-discord
Installation
Installing modules on Botpress is simple. By using the CLI, you only need to type this command in your terminal to add the discord module to your bot.
botpress install discord
It's also possible to install it though the Botpress UI in the modules section. (probably)
Get started
new Discord app
1. Create a2. Add a bot user to your app
Just press the "Add bot user button"
3. Copy the newly generated token
4. Insert the token into the config
The config is located at modules_config/botpress-discord.json. Insert the token as string at the key "botToken".
5. ????
6. Profit!
Features
Incoming
Outgoing
Reference
Incoming
You can listen to incoming events easily with Botpress by using the built-in "hear" function.
Ready
bp
Messages
bp
User status update
bp;
User typing
bp;
Text messages
An event
is sent to middlewares for each incoming text message from Discord.
platform: "discord" type: "text" user: eauthor text: econtent channel: echannel raw: e
Outgoing
Text messages
bpdiscord
Eris documentation):
You can also pass extra params to this method (check outbpdiscord;
Attachments
bpdiscord
Images
bpdiscord