Skip to content

A discord assistant with fun, gaming and moderation commands, made using discord.py

Notifications You must be signed in to change notification settings

KshavCode/purrbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot

A discord bot assistant created using discord.py!

Overview

This repository contains main.py. The project relies on JSON data files stored in data/ and lightweight persistent user data stored in userdata/.

Quick Start (Windows PowerShell)

  1. Create and activate a virtual environment:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the app:
python main.py

If your environment prevents script execution, run PowerShell as administrator or adjust the execution policy (be mindful of security).

Project Structure

  • main.py: Application entry point.
  • FunctionFiles.py: Shared functions and helpers used by main.py.
  • requirements.txt: Python dependencies for the project.
  • secrets.json: Configuration for secrets such as tokens or keys. DO NOT commit sensitive values.
  • feedback.txt: Free-form feedback or notes.
  • data/: JSON resources used by the bot.
    • animals.json, animals_emoji.json, help.json, roleplay.json, shop.json — example data resources used by the application.
  • userdata/: runtime persistent data written by the app.
    • hug_count.json, slap_count.json, inventory.json — counters and per-user data.
    • users.csv: user records

Data & Persistence

  • The data/ folder stores read-only resource files the app reads at runtime.
  • The userdata/ folder stores runtime-modified JSON files and should be writable by the running process.
  • If you back up or reset data, copy or remove files in userdata/ carefully to avoid loss.

Configuration & Secrets

  • secrets.json likely contains API keys, tokens, or other sensitive settings. Do not add secrets to version control. Use environment variables or a separate secure store for production deployments.

Development Notes

  • When adding new data files, place them in data/ and update code in FunctionFiles.py or main.py as needed.
  • Run python -m pip install -r requirements.txt after changing dependencies.

Contributing

  • Fork or branch, implement changes, and open a pull request with a clear description of your changes.

Support

  • For quick notes or issues, add them to feedback.txt or open an issue in your chosen tracker.

About

A discord assistant with fun, gaming and moderation commands, made using discord.py

Topics

Resources

Stars

Watchers

Forks

Languages