This is a Discord adapter for Hubot, a popular chatbot framework. With this adapter, you can connect your Hubot instance to a Discord server and interact with users through chat.
To use this adapter, you'll need to have Node.js and npm installed on your system. Then, you can install hubot-discord using npm:
npm install @hubot-friends/hubot-discordTo configure hubot-discord, you'll need to set a few environment variables:
HUBOT_DISCORD_TOKEN: Your Discord bot token. You can create a new bot and get a token from the Discord Developer Portal.
Don't forget to add your instance of Hubot to the channels with which you want to interact with it.
You can set these environment variables in a .env file in your Hubot project directory, or by exporting them in your shell.
To start your Hubot instance with the Discord adapter, run (if hubot is in your PATH):
HUBOT_DISCORD_TOKEN=<your-bot-token> hubot -a @hubot-friends/hubot-discord -n jbotReplace <your-bot-token> with your Discord bot token.
Once your Hubot instance is running, you can interact with it through chat in the Discord channel you've added Hubot to.
If you want to implement robot.hearing, you'll have to enable Message Content Intent in the Discord Developer Portal in your Application -> Bot section.
If you find a bug or have a feature request, please open an issue on the GitHub repository. Pull requests are also welcome!
hubot-discord is released under the MIT License.