Skip to content

Simple Discord chat bot built using the GPT 3.5 Turbo Model from OpenAI

Notifications You must be signed in to change notification settings

Dragon4926/Muse-Chan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot with OpenAI Integration(without API KEY)

Introduction

This Discord bot is designed to enhance your server experience by providing automated responses based on a conversation history using OpenAI's GPT-3.5-turbo model. Additionally, the bot features a dynamic status that changes periodically.

Installation

  1. Clone the repository:
  2. git clone https://github.com/Dragon4926/Muse-Chan.git
  3. unzip the zip file
  4. cd Muse-Chan
  5. Install dependencies:
  6. npm install
  7. Create a .env file in the root directory and add the following variables:
  8. TOKEN=your_bot_token API_KEY=your_openai_api_key CHANNEL_ID=your_discord_channel_id

Replace your_bot_token, your_openai_api_key, and your_discord_channel_id with your Discord bot token, OpenAI API key, and the channel ID where you want the bot to respond, respectively.

Usage

  1. Run the bot:
  2. node index.js
  3. Invite the bot to your Discord server using the OAuth2 link generated in your Discord Developer Portal.
  4. Ensure the bot has the necessary permissions and is in the specified channel (CHANNEL_ID) to respond.

Features

Dynamic Status

The bot showcases a dynamic status that changes every 3 minutes, cycling through activities like watching YouTube, listening to discord.js, and playing VALORANT.

OpenAI Integration

The bot utilizes OpenAI's GPT-3.5-turbo model to generate responses based on a conversation history. It simulates a tsundere waifu personality and responds accordingly.

Message Trigger

The bot responds to messages in the designated channel (CHANNEL_ID) and ignores messages starting with '!'. Adjust this condition as needed.

Configuration

Adjust the status array for customizing the dynamic status activities. Modify the conversation log or OpenAI parameters based on your preferences.

Credits

Feel free to contribute and improve the functionality of this Discord bot. If you encounter any issues or have suggestions, please open an issue.

About

Simple Discord chat bot built using the GPT 3.5 Turbo Model from OpenAI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%