A Simple Python 3 Discord Bot
kittykatgifs
is a Discord bot built using Python 3. Unlike other projects, this bot focuses on providing various functionalities for Discord servers, including the ability to fetch and display cat GIFs.
- Python 3.x
- Disnake library
- GIPHY API
- Loguru for logging
- Fetches cat GIFs based on user input
- Utilizes slash commands for easy interaction
- Provides colorful debug output via Loguru
- Python 3.x
- pip (Python package installer)
- Discord account
- GIPHY account
-
Clone the Repository
git clone https://github.com/zudsniper/kittykatgifs.git cd kittykatgifs
-
Install Dependencies
pip install -r requirements.txt
-
Environment Variables
Create a
.env
file in the root directory and add your Discord and GIPHY API tokens like so:DISCORD_BOT_TOKEN=your_discord_bot_token_here GIPHY_API_KEY=your_giphy_api_key_here
๐ or you can clone the
.env.example
file and rename it to.env
and add your tokens there.
-
Add the bot to your Discord server by visiting the following link:
https://discord.com/api/oauth2/authorize?client_id=your_discord_bot_client_id_here&permissions=0&scope=bot%20applications.commands
-
Run the Bot
python main.py
-
Bot Commands
Use
/prrr <words>
in any channel the bot has access to fetch a cat GIF based on the words provided.
This project includes basic unit tests. To run the tests, execute the following command:
python -m unittest discover tests
This project is licensed under the MIT License. See the LICENSE file for more details.
Inspired by various Discord bot projects and cat lovers everywhere.
Feel free to contribute to this project. For any issues, please open an issue or submit a pull request.