To get started with RasaDiscord, follow these steps:
Make sure you have Python installed. You can download it from python.org.
First, install the required dependencies by running:
pip install -r requirements.txt
Navigate to the rasa_server
directory and train the Rasa model:
cd rasa_server
rasa train
After training the model, you can run the Rasa server:
rasa run
-
Set up your Discord bot token:
- Obtain your Discord bot token from Discord Developer Portal.
- Create a
.env
file in thediscord_bot
directory and add your token:
DISCORD_TOKEN=YOUR_DISCORD_BOT_TOKEN
-
Enable Message Content Intent:
- Go to the Discord Developer Portal.
- Select your application.
- Navigate to the "Bot" section.
- Under "Privileged Gateway Intents," enable "Message Content Intent."
-
Start the Discord bot:
python discord_bot/main.py
Once both the Rasa server and Discord bot are running, your bot will be able to handle messages on your Discord server. Ensure that you have properly set your Discord bot token in the .env
file and enabled Message Content Intent.