A Discord-based accounting bot for Trapper Dan Clothing. This bot processes expense receipts (via images and text), tracks inventory, manages sales, and generates reports through a conversational AI interface.
- Expense Tracking: Upload receipts as images for automatic data extraction or enter expenses manually
- Inventory Management: Track products across different categories (blanks, DTF prints, other)
- Sales Recording: Record sales transactions with customer information
- Financial Reporting: Generate reports for expenses, inventory, and sales
- Data Backup: Automatic backup of all data to a Discord channel
- Python 3.8 or higher
- Discord account with bot creation privileges
- Discord server where you have admin permissions
For detailed instructions on setting up the Discord bot, please refer to the Discord Bot Setup Guide.
Quick setup steps:
- Go to the Discord Developer Portal
- Create a new application and add a bot
- Enable required intents (Presence, Server Members, Message Content)
- Copy your bot token and add it to the
.env
file - Set the required permissions:
- Read Messages/View Channels
- Send Messages
- Embed Links
- Attach Files
- Read Message History
- Generate an OAuth2 URL and use it to add the bot to your server
-
Clone this repository:
git clone https://github.com/yourusername/accountme-bot.git cd accountme-bot
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- Windows:
venv\Scripts\activate
- macOS/Linux:
source venv/bin/activate
- Windows:
-
Install dependencies:
pip install -r requirements.txt
-
Copy the
.env.example
file to.env
and update it with your Discord bot token and other settings:cp .env.example .env
-
Edit the
.env
file with your Discord bot token and other configuration values
-
Clone this repository:
git clone https://github.com/yourusername/accountme-bot.git cd accountme-bot
-
Copy the
.env.example
file to.env
and update it with your Discord bot token and other settings:cp .env.example .env
-
Build and run the Docker container:
docker-compose up -d
For detailed instructions on deploying the bot to Akash Network, please refer to the Akash Deployment Guide.
python bot/main.py
docker-compose up -d
!help
- Display help information!ping
- Check if the bot is responsive
!addproduct <category> <name> [attributes...]
- Add a new product!inventory <sku>
- View product details!adjustinventory <sku> <quantity> [reason]
- Update inventory quantity!inventoryreport [category]
- Generate inventory report
!addexpense
- Start expense entry conversation!uploadreceipt
- Upload and process receipt image!expenses [period] [category]
- List expenses!addsale
- Start sale entry conversation!sales [period] [customer]
- List sales
!report <natural_language_query>
- Generate custom report!export <report_type> <start_date> <end_date>
- Export data to CSV
!backup
- Manually trigger backup!restore <backup_id>
- Restore from backup
This project is being developed in multiple phases:
- Foundation Setup: Basic bot structure, database design, and core framework
- Image Processing & OCR: Receipt scanning and data extraction
- Inventory Management: Product tracking and reporting
- Financial Tracking: Expense and sales recording
- Conversational AI & Advanced Features: Natural language reporting
- Optimization & Deployment: Performance improvements and deployment to Akash
Run the bot directly on your local machine or server using Python or Docker.
Deploy the bot to the Akash Network, a decentralized cloud computing marketplace, for 24/7 availability and cost-effective hosting. See the Akash Deployment Guide for detailed instructions.
Benefits of Akash deployment:
- 24/7 availability
- Cost-effective hosting
- Decentralized infrastructure
- Persistent storage for database and backups
- Automatic recovery from failures
- Your Name - Initial development