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.
- Clone the repository:
- unzip the zip file
- Install dependencies:
- Create a
.env
file in the root directory and add the following variables:
git clone https://github.com/Dragon4926/Muse-Chan.git
cd Muse-Chan
npm install
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.
- Run the bot:
- Invite the bot to your Discord server using the OAuth2 link generated in your Discord Developer Portal.
- Ensure the bot has the necessary permissions and is in the specified channel (
CHANNEL_ID
) to respond.
node index.js
The bot showcases a dynamic status that changes every 3 minutes, cycling through activities like watching YouTube, listening to discord.js, and playing VALORANT.
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.
The bot responds to messages in the designated channel (CHANNEL_ID
) and ignores messages starting with '!'. Adjust this condition as needed.
Adjust the status
array for customizing the dynamic status activities. Modify the conversation log or OpenAI parameters based on your preferences.
Feel free to contribute and improve the functionality of this Discord bot. If you encounter any issues or have suggestions, please open an issue.