Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.44 KB

README.md

File metadata and controls

60 lines (38 loc) · 1.44 KB

RasaDiscord

Installation

To get started with RasaDiscord, follow these steps:

Prerequisites

Make sure you have Python installed. You can download it from python.org.

Step 1: Install Dependencies

First, install the required dependencies by running:

pip install -r requirements.txt

Step 2: Setup Rasa

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

Step 3: Setup Discord Bot

  1. Set up your Discord bot token:

    • Obtain your Discord bot token from Discord Developer Portal.
    • Create a .env file in the discord_bot directory and add your token:
    DISCORD_TOKEN=YOUR_DISCORD_BOT_TOKEN
    
  2. 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."
  3. Start the Discord bot:

    python discord_bot/main.py

Usage

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.