Skip to content

this repository contains the source code for a Discord bot called "Dont-Know-Bot." The bot is built using the Discord.js library and provides various features, including OpenAI question answering, image creation, and anime guessing.

Rei-ath/dont-know-bot

Repository files navigation

Don't Know Bot

Welcome to the Don't Know Bot repository! This Discord bot is designed to provide various functionalities, including OpenAI question-answering, image creation, and anime guessing. It utilizes OpenAI's powerful language model and incorporates image generation techniques to enhance the user experience.

Installation

To run the Don't Know Bot, follow these steps:

  1. Clone the repository:
git clone https://github.com/Rei-ath/dont-know-bot.git
  1. Install the required dependencies:
npm install

3.Create the .env file:

  • Create a new .env file in the project root directory.
  • Open the .env file and add the following keys:
# Set environment variables
token=YOUR_DISCORD_BOT_TOKEN
clientId=YOUR_DISCORD_CLIENT_ID
guildId=YOUR_DISCORD_GUILD_ID
openAiToken=YOUR_OPENAI_API_TOKEN
auth=YOUR_DISCORD_ACCOUNT_TOKEN
admins=["ADMIN_ID1", "ADMIN_ID2"]

OR

Create and configure the config.json file:

  • Create a new config.json file in the project root directory.
  • Open the config.json file and add the following keys:
{
  "token": "YOUR_DISCORD_BOT_TOKEN",
  "clientId": "YOUR_DISCORD_CLIENT_ID",
  "guildId": "YOUR_DISCORD_GUILD_ID",
  "openAiToken": "YOUR_OPENAI_API_TOKEN",
  "auth":"YOUR_DISCORD_ACCOUNT_TOKEN",
  "admins":["ADMIN_ID1", "ADMIN_ID2"]
}
  • Replace the placeholder values (YOUR_DISCORD_BOT_TOKEN, YOUR_DISCORD_CLIENT_ID, YOUR_DISCORD_GUILD_ID, and YOUR_OPENAI_API_TOKEN) with the actual credentials.
  1. Start the bot: node index.js

About

this repository contains the source code for a Discord bot called "Dont-Know-Bot." The bot is built using the Discord.js library and provides various features, including OpenAI question answering, image creation, and anime guessing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published