Skip to content

Commit f080ec5

Browse files
committed
🧰 Hero README: WelshDog Toolbox treatment [Issue #12]
1 parent c93165a commit f080ec5

1 file changed

Lines changed: 85 additions & 101 deletions

File tree

README.md

Lines changed: 85 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,160 +1,144 @@
1-
# 🐶♾️ BROski Bot v4.0 - Enterprise Edition
1+
# 🤖 BROski Bot v4.0
22

3-
**Neurodivergent-friendly Discord automation empire** built with Python, discord.py, and Enterprise Architecture.
3+
> 🟢 ACTIVE — Part of the [WelshDog Toolbox](https://github.com/welshDog/HyperFocus-Zone-Portal#-everyday-toolbox) | [HyperFocus Zone](https://github.com/welshDog/HyperFocus-Zone-Portal)
4+
5+
[![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/)
6+
[![discord.py](https://img.shields.io/badge/discord.py-2.x-5865F2)](https://discordpy.readthedocs.io/)
7+
[![FastAPI](https://img.shields.io/badge/FastAPI-economy_API-green)](https://fastapi.tiangolo.com/)
8+
[![Docker](https://img.shields.io/badge/docker-ready-blue)](https://www.docker.com/)
9+
[![Built in Wales](https://img.shields.io/badge/Built%20in-Wales%20🏴-red)](https://github.com/welshDog)
10+
11+
> *Your ADHD-first Discord companion. Ride or die. BROski♾️*
412
513
---
614

7-
## ✨ Features
15+
## 🥔 Who this is for
816

9-
- 💰 **Token Economy** - BROski$ rewards, daily streaks, leaderboards
10-
- ⏱️ **Focus Sessions** - Pomodoro timer with hyperfocus bonuses (+200 tokens!)
11-
- 🎯 **Quest System** - Treasure hunts, challenges, achievements
12-
- 🤖 **AI Integration** - Natural language commands via llmcord
13-
- 🏆 **Leveling System** - XP, ranks, auto role assignment
14-
- 💎 **Memory Crystals** - Epic rewards (500+ tokens)
15-
- 🔗 **MintMe Integration** - Real blockchain BROski token airdrops
16-
- 🌐 **REST API** - Secure endpoints for economy and gamification (FastAPI)
17+
**You, if any of these are true:**
18+
- You have a Discord server and your community needs structure + fun without it feeling corporate
19+
- You’re neurodivergent (ADHD/dyslexic/autistic) and need external dopamine hits to stay on task
20+
- You want a token economy that rewards real activity — focus sessions, daily check-ins, missions
21+
- You want hyperfocus tracking, leaderboards, and achievements that actually mean something
22+
23+
BROski Bot is the community companion for Hyperfocus Zone — built specifically for ND brains.
1724

1825
---
1926

20-
## 🚀 Quick Start (Enterprise)
27+
## ⚡ One-Command Run
2128

22-
### 1. Clone & Setup
2329
```bash
30+
# Clone and install
2431
git clone https://github.com/welshDog/BROski-Bot.git
2532
cd BROski-Bot
26-
# Install Poetry if not installed: pip install poetry
27-
poetry install
28-
```
33+
pip install poetry && poetry install
2934

30-
### 2. Configuration
31-
```bash
35+
# Configure
3236
cp .env.example .env
33-
# Edit .env with your Discord bot token and database details:
34-
# DB_HOST=localhost
35-
# DB_PORT=5432
36-
# DB_NAME=broski
37-
# DB_USER=postgres
38-
# DB_PASSWORD=your_password
39-
```
37+
# Add: DISCORD_TOKEN, DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD
4038

41-
### 3. Database Migrations
42-
The project uses Alembic for database schema management.
43-
```bash
44-
# Apply migrations to head
39+
# Run database migrations
4540
poetry run alembic upgrade head
4641

47-
# Rollback one revision
48-
poetry run alembic downgrade -1
49-
50-
# Generate new migration (after model changes)
51-
poetry run alembic revision --autogenerate -m "description"
42+
# Launch the bot
43+
python -m src.main run
5244
```
5345

54-
### 4. Run
46+
**Docker (recommended for servers):**
5547
```bash
56-
# Run Bot
57-
python -m src.main run
58-
59-
# Run API Server (HyperCode Integration)
60-
python -m src.main api
48+
docker-compose up -d
49+
docker-compose logs -f broski-bot
6150
```
6251

6352
---
6453

65-
## 📁 Project Structure
54+
## 🖥️ What you see when it works
6655

6756
```
68-
src/
69-
├── api/ # FastAPI Routes (Economy, Health)
70-
├── agents/ # AI Agents (Classifier, Code Analyzer)
71-
├── cogs/ # Discord Extensions (Economy, Focus, etc.)
72-
├── config/ # Settings & Logging
73-
├── core/ # Core Logic (Database, Exceptions)
74-
├── integrations/ # External APIs (MintMe)
75-
├── models/ # Database Models
76-
├── repositories/ # Data Access Layer
77-
├── services/ # Business Logic Layer
78-
└── utils/ # Utilities
57+
[Discord] /focus deep-work
58+
→ BROski: 🔥 Hyperfocus session ACTIVATED! Focus on: deep-work
59+
Timer started. Type /focusend when done. You got this BROski! ⚡
60+
61+
[30 mins later...]
62+
/focusend
63+
→ BROski: 🏆 SESSION COMPLETE! +200 BROski$ + 50XP earned!
64+
Streak: 3 days 🔥 | Level: BROski Agent (250/500 XP)
65+
66+
/leaderboard
67+
→ 🏆 Top BROskis This Week:
68+
1. WelshDog — 1,250 coins | Level 5 Commander
69+
2. ...
7970
```
8071

8172
---
8273

83-
## 📋 Commands
74+
## 🎮 Commands
8475

8576
### 💰 Economy
86-
- `/balance [@user]` - Check token balance
87-
- `/daily` - Claim daily reward (streak bonus!)
88-
- `/give @user amount` - Gift tokens
89-
- `/leaderboard` - Top earners
77+
| Command | What it does |
78+
|---|---|
79+
| `/balance [@user]` | Check BROski$ coin balance |
80+
| `/daily` | Claim daily reward (streak bonus!) |
81+
| `/give @user amount` | Gift coins to a BROski |
82+
| `/leaderboard` | Top earners this week |
9083

9184
### ⏱️ Focus & Productivity
92-
- `/focus project` - Start hyperfocus session (+50 tokens)
93-
- `/focusend` - End session (+200 tokens base reward!)
85+
| Command | What it does |
86+
|---|---|
87+
| `/focus [project]` | Start hyperfocus session (+50 coins on start) |
88+
| `/focusend` | End session (+200 coins base reward!) |
9489

95-
### 🎯 Quests
96-
- `/quests` - View active quests
97-
- `/achievements` - Your unlocked achievements
90+
### 🎯 Quests & Achievements
91+
| Command | What it does |
92+
|---|---|
93+
| `/quests` | View active quests |
94+
| `/achievements` | Your unlocked achievements |
9895

9996
---
10097

101-
## 🔌 API & Integration
98+
## 💰 BROski$ Economy
10299

103-
BROski Bot exposes a REST API for integration with **HyperCode V2.0**.
100+
| Action | Coins | XP |
101+
|---|---|---|
102+
| Daily login | +5 ||
103+
| Start focus session | +50 ||
104+
| End focus session | +200 | +100 |
105+
| Complete a quest | varies | varies |
106+
| Unlock achievement | varies | varies |
104107

105-
- **Base URL:** `http://localhost:8000`
106-
- **Docs:** `/docs` (Swagger UI)
107-
- **Endpoints:**
108-
- `GET /economy/balance/{user_id}`
109-
- `POST /economy/redeem`
110-
- `POST /economy/transfer`
108+
**Levels:** Recruit → Cadet → Agent → Operator → Commander → Architect → **Legend ♾️**
111109

112110
---
113111

114-
## 🐳 Docker Deployment
112+
## 🔗 How it connects to Hyperfocus Zone
115113

116-
```bash
117-
docker-compose up -d
118-
docker-compose logs -f broski-bot
119-
```
114+
| Connection | Detail |
115+
|---|---|
116+
| 💜 PostgreSQL | BROski$ economy runs on the same Postgres stack as HyperCode-V2.4 |
117+
| 🏢 FastAPI | REST API at `:8000` — economy endpoints usable by any HyperFocus agent |
118+
| 📊 Prometheus | Bot metrics exported for Grafana observability dashboard |
119+
| 🤖 HyperCode-V2.4 | BROski$ awards flow from the core `/economy/award-dev-xp` endpoint |
120+
| 💬 Community | The official BROski Discord server runs this bot |
121+
| 🏠 Ecosystem | Part of the WelshDog Toolbox — [HyperFocus Zone Portal](https://github.com/welshDog/HyperFocus-Zone-Portal) |
120122

121123
---
122124

123125
## 🛠️ Tech Stack
124126

125127
- **Runtime:** Python 3.11+
126128
- **Bot Framework:** discord.py 2.x
127-
- **API Framework:** FastAPI
128-
- **Database:** PostgreSQL (SQLAlchemy + AsyncPG)
129-
- **Dependency Management:** Poetry
129+
- **API:** FastAPI + SQLAlchemy + AsyncPG
130+
- **Database:** PostgreSQL (managed by Alembic)
130131
- **Monitoring:** Prometheus + Grafana
132+
- **Deps:** Poetry
131133

132134
---
133135

134-
## 🧠 Built for Neurodivergent Developers
136+
<div align="center">
135137

136-
This bot is specifically designed with ADHD and dyslexia in mind:
137-
138-
- ✅ Clear visual feedback with embeds
139-
- ✅ Quick wins and dopamine rewards
140-
- ✅ Streak systems for motivation
141-
- ✅ Hyperfocus session tracking
142-
- ✅ No walls of text - bite-sized info
143-
144-
---
138+
**Part of the WelshDog Toolbox — Built with 🧠 + ❤️ in Llanelli, Wales 🏴󠁧󠁢󠁷󠁬󠁳󠁥**
145139

146-
## 👨‍💻 Author
140+
*by [@welshDog](https://github.com/welshDog) — Lyndz Williams*
147141

148-
**Lyndz Williams** (@welshDog)
149-
Welsh Indie Developer | Llanelli, Wales 🏴
150-
Building accessible AI tools for neurodivergent creators
151-
152-
---
153-
154-
## 📝 License
155-
156-
MIT License - Built with 🧠 and ♾️
157-
158-
---
142+
[🊪 Back to HyperFocus Zone Portal](https://github.com/welshDog/HyperFocus-Zone-Portal) · [💙 Sponsor](https://github.com/sponsors/welshDog) · [🛒 Shop](https://welshdog.shop)
159143

160-
**HYPERFOCUS MODE ACTIVATED** 🔥🐶
144+
</div>

0 commit comments

Comments
 (0)