meowBot>

Updated: February 10, 2024

A Discord bot designed to bring fun and interaction to any server

meowBot is a Discord bot designed to bring a bit of fun and interaction to any server. Hosted on Google Cloud Platform and using SQLite for database management, this bot simulates a virtual cat that responds to various triggers and allows users to interact with it through a petting feature.

Project Overview

meowBot offers a range of functionalities:

Key Features

How It Works

  1. Setup: The bot connects to a SQLite database to manage pet statistics. It creates a table to store user data, including pet counts and last petting times.
  2. Message Handling: Responds to commands:
    • !pet – Allows users to pet the cat and updates their pet count.
    • !petleaderboard – Shows the top users with the most pets.
    • !pettimer – Informs users when they can pet the cat again.
  3. Trigger Responses: Sends a random cat-related response when specific triggers are detected in message content.

Code Explanation

Getting Started

  1. Clone this repository.
  2. Set up a Google Cloud Platform project and configure your environment to run the bot.
  3. Install required Python libraries:
    pip install discord sqlite3 python-dotenv
  4. Create a .env file in the root directory and add your Discord API key:
    DISCORD_API_KEY=your_discord_api_key_here
  5. Run the bot:
    python meow_bot.py

Prerequisites

Contributing

Contributions to improve meowBot are welcome! Feel free to reach out for improvements and advancements.