Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1 KB

README.md

File metadata and controls

32 lines (24 loc) · 1 KB

Cairo Bot for Discord

This bot sends questions to the Cairo Chatbot (Cairo Chatbot) via its API and sends back an answer in the Discord server.

Example

Example Screenshot

How to Use the Bot

In the Discord channel, use the following command:

!Cairo <your prompt goes here>

How to Implement the Bot in Your Channel

If you want to use the bot for your own Discord server, follow these steps:

  1. Go to the Discord Developer Portal.
  2. Click "New Application" and give your application a name.
  3. Go to the "Bot" tab on the left sidebar.
  4. Copy the TOKEN of your bot.
  5. In your code editor, in the .env-example file, replace <your_discord_token_bot_here> with your bot's token.
  6. Run node index.js.

Installation

Don't forget to install the necessary packages:

npm install discord.js
npm install axios
npm install dotenv