A Discord bot powered by GPT-4 that responds to messages, processes commands, and includes a bad word filter.
✅ AI Chat Responses – Uses OpenAI's GPT-4 for smart replies
✅ Bad Word Filter – Prevents inappropriate AI responses
✅ Customizable – Modify and expand the bot’s features
✅ 24/7 Hosting Ready – Works with Railway.app and UptimeRobot
git clone https://github.com/YOUR-USERNAME/YOUR-REPO-NAME.git
cd YOUR-REPO-NAME
2️⃣ Install Dependencies
sh
Copy
Edit
pip install -r requirements.txt
3️⃣ Create a .env File
Create a new file named .env
Add the following inside (Replace with real API keys):
env
Copy
Edit
DISCORD_TOKEN=your-discord-bot-token-here
OPENAI_API_KEY=your-openai-api-key-here
❗ Important:
.env is private and should NOT be uploaded to GitHub.
Instead, an .env.example file provides a template for others.
4️⃣ Run the Bot Locally
sh
Copy
Edit
python bot.py
🌐 Hosting on Railway.app
Create an account on Railway.app
Deploy from GitHub → Select this repository
Add environment variables (DISCORD_TOKEN & OPENAI_API_KEY)
Start the bot and keep it online with UptimeRobot
📜 License
This project is licensed under the MIT License – feel free to modify and use it!
💙 Contributing
Want to improve this bot? Fork the repo, make changes, and submit a pull request!
🔗 Contact
Created by @morithegamer
Feel free to contribute, report issues, or suggest features!