This repository helps you set up a Discord bot that can answer questions from documentation, similar to the one in the Live Helper Chat Discord channel.
- Join our Discord server
- The help channel is available at https://discord.com/channels/711499430154731520/1300394139895988244
Creating a Discord bot is not within the scope of this repository, but here are some resources to help you:
- Watch this tutorial: How to Create a Discord Bot
- Visit the Discord Developer Portal to create your application and bot
- Generate an invitation link with appropriate permissions to add the bot to your server
- Import
lhc/incoming-webhook.json
file inHome > System configuration > Incoming webhooks
. - Change the
Identifier
field and updateAttributes > bot_token
(you can see this by clicking "Show integration information"). - Choose a department for the bot (it's recommended to create a new department specifically for Discord integration).
- Copy the
URL to put in third party Rest API service
for later use.
- Import
lhc/restp-api.json
file inHome > System configuration > Rest API Calls
. - Import
lhc/bot.json
file inBots > Import
. During import choose in previous step importedRest API
- Create webhook as per screenshot. For those events webhooks should be created.
chat.before_auto_responder_msg_saved
chat.web_add_msg_admin
chat.workflow.canned_message_before_save
chat.desktop_client_admin_msg
- Clone this repository
- Copy
discord/discord-server/.env.default
todiscord/discord-server/.env
- Modify variables in the
.env
file. You'll need to paste the Webhook URL you copied earlier. - Build the server with
docker-compose up --build
to test. Once everything is working, rundocker-compose up -d
to run it as a service.