This is a Python Discord bot with various features, including playing music from YouTube, providing interesting facts, generating rhymes, using the GPT-3.5 model for text generation, and more.
Before running the bot, make sure you have the following installed:
- Python 3.x
- Discord.py
- requests
- openai
- configparser
- youtube-dl (yt_dlp)
- youtubesearchpython
You'll also need to set up a Discord bot and obtain API keys for the OpenAI GPT-3.5 model and Ninja API. Configure these keys in config.ini before running the bot.
- Play music from YouTube using
!play (song)or!play (search query). - Pause and resume playback with
!pauseand!resume. - Skip the current song with
!skip. - View the queue with
!queue.
- Get interesting facts with
!fact. - Generate rhymes for a word with
!rhyme (word). - Use the GPT-3.5 model for text generation with
!gpt (prompt)and!dalle (prompt). - Get more generated text based on the previous fact with
!more.
- View the list of available commands with
!help.
- Search for videos on YouTube with
!search (query).
- Run the bot by executing the script.
- Invite the bot to your Discord server.
- Use the provided commands to interact with the bot.
Note: Ensure the bot has proper permissions to join voice channels and send messages in your server.
This Discord bot was created by [Author Name].
This project is licensed under the [License Name] License - see the LICENSE file for details.