DEPRECATED: This project is currently not being maintained as there have been some changes to the various parts Bot Framework. These changes go against the original intent of this DiscordConnector.
This project may be revived later when the V4 botbuilder-js SDK reaches production-quality status and a new BotAdapter-based implementation may be created.
Version 0.7.3 - NPM
DiscordConnector allows bots written using Microsoft's Bot Framework to be used in the popular VoIP client, Discord. DiscordConnector uses the Bot Framework's Direct Line API to connect a Bot Framework Bot to Discord. This connector implements Discord.js to map Direct Line's Activity objects to Discord-consumable events.
The ConnectorStorage provides multiple conversation support. A succinct description is that the DiscordConnector uses an external storage to store Direct Line Conversation ID and Discord Channel ID pairings; this allows your users to continue conversations with their bot. The TestConnectorStorage provides the same support but caches the pairings internally. Use the TestConnectorStorage for rapid prototyping/trying out DiscordConnector.
The DiscordHelperModule focuses on providing Discord-specific functionalities and commands, e.g. having a bot join or leave a channel, getting a list of users from the Discord.js client, etc.
npm install discordconnector
uws
is a peer dependency of Discord.js and must be installed. All other unmet dependency messages can be safely ignored.
At the moment voice is not yet supported with this adapter, though its support is planned.
- This version of the DiscordConnector was built with Discord.js v11.1.0 (Discord.js .zip and .tar.gz)
- Users should only format their bot's messages in markdown as this is Discord's supported markup language.
- NOTE: Discord does not support buttons or similiar forms of data input in their RichEmbeds. If a button type is one of those found here under cardActionTypes, then the value of the message (if an URL) will be added to the card.
- Discord currently supports one attachment per message.
- Thank you to hydrabolt for the Discord.js library.
- You can provide feedback to Discord via their forums!
- File Bot Builder bugs and issues at their repository.
- File Discord.js issues at their repository.