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.
To run the Don't Know Bot, follow these steps:
- Clone the repository:
git clone https://github.com/Rei-ath/dont-know-bot.git
- 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"]
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
, andYOUR_OPENAI_API_TOKEN
) with the actual credentials.
- Start the bot:
node index.js