|
1 | | -# 🐶♾️ BROski Bot v4.0 - Enterprise Edition |
| 1 | +# 🤖 BROski Bot v4.0 |
2 | 2 |
|
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 | +[](https://www.python.org/) |
| 6 | +[](https://discordpy.readthedocs.io/) |
| 7 | +[](https://fastapi.tiangolo.com/) |
| 8 | +[](https://www.docker.com/) |
| 9 | +[](https://github.com/welshDog) |
| 10 | + |
| 11 | +> *Your ADHD-first Discord companion. Ride or die. BROski♾️* |
4 | 12 |
|
5 | 13 | --- |
6 | 14 |
|
7 | | -## ✨ Features |
| 15 | +## 🥔 Who this is for |
8 | 16 |
|
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. |
17 | 24 |
|
18 | 25 | --- |
19 | 26 |
|
20 | | -## 🚀 Quick Start (Enterprise) |
| 27 | +## ⚡ One-Command Run |
21 | 28 |
|
22 | | -### 1. Clone & Setup |
23 | 29 | ```bash |
| 30 | +# Clone and install |
24 | 31 | git clone https://github.com/welshDog/BROski-Bot.git |
25 | 32 | cd BROski-Bot |
26 | | -# Install Poetry if not installed: pip install poetry |
27 | | -poetry install |
28 | | -``` |
| 33 | +pip install poetry && poetry install |
29 | 34 |
|
30 | | -### 2. Configuration |
31 | | -```bash |
| 35 | +# Configure |
32 | 36 | 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 |
40 | 38 |
|
41 | | -### 3. Database Migrations |
42 | | -The project uses Alembic for database schema management. |
43 | | -```bash |
44 | | -# Apply migrations to head |
| 39 | +# Run database migrations |
45 | 40 | poetry run alembic upgrade head |
46 | 41 |
|
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 |
52 | 44 | ``` |
53 | 45 |
|
54 | | -### 4. Run |
| 46 | +**Docker (recommended for servers):** |
55 | 47 | ```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 |
61 | 50 | ``` |
62 | 51 |
|
63 | 52 | --- |
64 | 53 |
|
65 | | -## 📁 Project Structure |
| 54 | +## 🖥️ What you see when it works |
66 | 55 |
|
67 | 56 | ``` |
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. ... |
79 | 70 | ``` |
80 | 71 |
|
81 | 72 | --- |
82 | 73 |
|
83 | | -## 📋 Commands |
| 74 | +## 🎮 Commands |
84 | 75 |
|
85 | 76 | ### 💰 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 | |
90 | 83 |
|
91 | 84 | ### ⏱️ 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!) | |
94 | 89 |
|
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 | |
98 | 95 |
|
99 | 96 | --- |
100 | 97 |
|
101 | | -## 🔌 API & Integration |
| 98 | +## 💰 BROski$ Economy |
102 | 99 |
|
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 | |
104 | 107 |
|
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 ♾️** |
111 | 109 |
|
112 | 110 | --- |
113 | 111 |
|
114 | | -## 🐳 Docker Deployment |
| 112 | +## 🔗 How it connects to Hyperfocus Zone |
115 | 113 |
|
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) | |
120 | 122 |
|
121 | 123 | --- |
122 | 124 |
|
123 | 125 | ## 🛠️ Tech Stack |
124 | 126 |
|
125 | 127 | - **Runtime:** Python 3.11+ |
126 | 128 | - **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) |
130 | 131 | - **Monitoring:** Prometheus + Grafana |
| 132 | +- **Deps:** Poetry |
131 | 133 |
|
132 | 134 | --- |
133 | 135 |
|
134 | | -## 🧠 Built for Neurodivergent Developers |
| 136 | +<div align="center"> |
135 | 137 |
|
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 🏴** |
145 | 139 |
|
146 | | -## 👨💻 Author |
| 140 | +*by [@welshDog](https://github.com/welshDog) — Lyndz Williams* |
147 | 141 |
|
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) |
159 | 143 |
|
160 | | -**HYPERFOCUS MODE ACTIVATED** 🔥🐶 |
| 144 | +</div> |
0 commit comments