This bot sends questions to the Cairo Chatbot (Cairo Chatbot) via its API and sends back an answer in the Discord server.
In the Discord channel, use the following command:
!Cairo <your prompt goes here>
If you want to use the bot for your own Discord server, follow these steps:
- Go to the Discord Developer Portal.
- Click "New Application" and give your application a name.
- Go to the "Bot" tab on the left sidebar.
- Copy the TOKEN of your bot.
- In your code editor, in the
.env-example
file, replace<your_discord_token_bot_here>
with your bot's token. - Run
node index.js
.
Don't forget to install the necessary packages:
npm install discord.js
npm install axios
npm install dotenv