This is a ChatBotKit and Discord Bot project. It is a simple example demonstrating how to build and customise your own Discord Bot.
First, let's create our ChatBotKit API Key. To do so, go to ChatBotKit and click on the Create Token Button. Copy and Save the newly created token.
Second, you will need to setup your discord application. Go to Discord Developer Portal and click New Application. Follow the steps required to setup the integration.
- Go to your Discord application and navigate to "General Information" to find your Application ID and Public Key.
- Go to the Bot section and click Reset Token to obtain your Bot Token. If there is no "Reset Token" button then you may need to add a bot first. Click the Add Button.
- Copy and save the Bot Token.
Please remember to invite your Discord Bot the server you want the bot to be active
- Install the dependancies by running
npm install
-
Create a file called
.env
-
Add your CHATBOTKIT_API_KEY, BOT_TOKEN like this:
CHATBOTKIT_API_KEY=<YOUR TOKEN HERE>
BOT_TOKEN= <YOUR DISCORD BOT TOKEN>
Then, run the development server:
node main.js
Open the Discord Server you invited your bot. The Bot should be online and you can start chating with it!