/DiscordConnector

Custom Bot Framework Connector for Discord

Primary LanguageJavaScriptMIT LicenseMIT

DiscordConnector

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


Description:

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.


Setup:

npm install discordconnector

uws is a peer dependency of Discord.js and must be installed. All other unmet dependency messages can be safely ignored.

Voice & ffmpeg:

At the moment voice is not yet supported with this adapter, though its support is planned.

DiscordConnector

Details:

Examples:


Special Thanks:

Other Information:

  • 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.