Quote Bot is a Discord bot that automatically sends a random quote along with a related image to a specified text channel every 12 hours. It uses the discord.py library for interacting with Discord and the requests library for fetching quotes and images from the internet.
- Fetches a random quote from Quotable API
- Fetches a related image from Unsplash API
- Sends the quote and image as an embed message in a specified text channel
- Supports mentioning a specific role when sending the quote and image
- Make sure you have Python 3.6 or higher installed. You can check your Python version by running
python --version
in your terminal. - Clone this repository and navigate to the project directory.
git clone https://github.com/yourusername/quote-bot.git
- Then
cd quote-bot
- Install the required dependencies:
pip install -r requirements.txt
- Replace the placeholders with your actual Discord bot token, Unsplash API key, text channel ID, and role ID.
- python bot.py
To customize the bot's behavior, you can modify the following variables in the quote_bot.py file:
TOKEN: Your Discord bot token (string)
TEXT_CHANNEL_ID: The text channel ID where the bot should send messages (integer)
UNSPLASH_ACCESS_KEY: Your Unsplash API key (string)
ROLE_ID: The role ID that the bot should mention when sending messages (integer)
This project is licensed under the MIT License.