Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 084bf14

Browse files
committed
remove: completely remove highlights cog and replace with invite tracker
Changes: - Deleted cogs/highlights.py file - Removed highlights from bot.py feature_cogs list - Updated help.py: - Removed highlights emoji and description - Added invitetracker emoji (📊) and description - Updated README.md: - Replaced Highlights System section with Invite Tracker System - Updated database persistence section - Replaced highlight commands with invite tracker commands - Updated database files list - Updated misc.py about command: - Replaced 🔔 Highlights with 📊 Invite Tracker The highlights feature has been completely removed and replaced with the new professional invite tracking system.
1 parent cfcb62e commit 084bf14

6 files changed

Lines changed: 29 additions & 155 deletions

File tree

.tools_test_new_help.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ async def test_help_cog():
1010
"""Simulate loading the help cog."""
1111
print("Creating minimal bot...")
1212
intents = discord.Intents.default()
13-
bot = commands.Bot(command_prefix="f?", intents=intents, help_command=None)
13+
# Use a small subclass that declares `available_cogs` as a class attribute
14+
class TestBot(commands.Bot):
15+
available_cogs = []
16+
bot = TestBot(command_prefix="f?", intents=intents, help_command=None)
1417

15-
# Add some mock cogs to available_cogs
16-
bot.available_cogs = ['admin', 'economy', 'fun', 'tags', 'community']
18+
# Add some mock cogs to available_cogs (set on the class so instance attribute restrictions don't apply)
19+
TestBot.available_cogs = ['admin', 'economy', 'fun', 'tags', 'community']
1720

1821
print("Loading help cog...")
1922
try:

README.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,16 @@ Democratic decision-making for your community:
7272
- **Timed Elections**: Auto-close after specified duration (1-1440 minutes)
7373
- **Visual Results**: Beautiful result displays with percentages and vote counts
7474

75-
### **Highlights System**
76-
Personal mention system for keywords:
77-
- **Add Highlights**: `f?highlights add <phrase>` - Get notified when phrase is mentioned
78-
- **Remove Highlights**: `f?highlights remove <phrase>` - Stop tracking a phrase
79-
- **List Highlights**: `f?highlights list` - View all your tracked phrases
80-
- **Smart Notifications**: DM notifications when your phrases appear in chat
81-
- **Flexible Matching**: Case-insensitive phrase detection (3-100 characters)
82-
- **Per-User**: Each user manages their own highlight list
75+
### **Invite Tracker System**
76+
Professional invite tracking and analytics:
77+
- **Invite Codes**: `/invitecodes` - View your invite codes and usage statistics
78+
- **Invited List**: `/invitedlist` - List members you've invited to the server
79+
- **Check Inviter**: `/inviter` - See who invited a specific member
80+
- **Leaderboard**: `/inviteleaderboard` - Server-wide invite rankings
81+
- **Real-time Tracking**: Automatic detection of invite usage
82+
- **Fake Detection**: Flags accounts less than 7 days old
83+
- **Leave Tracking**: Updates stats when invited members leave
84+
- **Detailed Analytics**: Total, valid, left, and fake invite statistics
8385

8486
### **Fun Commands**
8587
Entertainment and engagement features:
@@ -134,13 +136,13 @@ Powerful tools for server administrators:
134136
- **SQLAlchemy ORM**: Modern async database operations
135137
- **SQLite (Dev)**: Fast development with file-based database
136138
- **PostgreSQL (Production)**: Scalable production deployment
137-
- **Multiple Databases**: Separate SQLite DBs for tags, starboard, highlights
139+
- **Multiple Databases**: Separate SQLite DBs for tags, starboard, invites
138140
- **Data Integrity**: Proper constraints, indexes, and transaction handling
139141
- **Migration Ready**: Easy schema updates and data migrations
140142

141143
### **Performance & Reliability**
142144
- **Connection Pooling**: Efficient database connection management
143-
- **Caching**: Smart caching for starboard and highlight systems
145+
- **Caching**: Smart caching for starboard and invite systems
144146
- **Rate Limiting**: Built-in cooldown management
145147
- **Graceful Degradation**: Continues working even if some features fail
146148
- **Comprehensive Logging**: Detailed logs for debugging and monitoring
@@ -282,11 +284,14 @@ f?election results - View results
282284
f?election end - Force end election
283285
```
284286

285-
### **Highlight Commands**
287+
### **Invite Tracker Commands**
286288
```
287-
f?highlights add <phrase> - Add highlight word/phrase
288-
f?highlights remove <phrase> - Remove highlight
289-
f?highlights list - List your highlights
289+
f?invitecodes - View your invite codes and usage
290+
f?invitedlist - List members you've invited
291+
f?inviter [@member] - Check who invited a member
292+
f?inviteleaderboard - Server invite rankings
293+
f?syncinvites - Sync invite cache (Admin)
294+
f?invitedocs - View documentation
290295
```
291296

292297
### **Fun Commands**
@@ -421,7 +426,7 @@ data/
421426
├── eigen.db # Main economy database (SQLAlchemy)
422427
├── tags.db # Tag system (aiosqlite)
423428
├── starboard.db # Starboard system (aiosqlite)
424-
└── highlights.db # Highlights system (aiosqlite)
429+
└── invites.db # Invite tracker system (aiosqlite)
425430
```
426431
427432
---

bot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ async def setup_hook(self) -> None:
9696
'cogs.help',
9797
'cogs.community',
9898
'cogs.election',
99-
'cogs.highlights',
10099
'cogs.whois_alias',
101100
'cogs.utility_extra',
102101
'cogs.invitetracker',

cogs/help.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"tags": "🏷️",
1313
"communitycommands": "👥",
1414
"election": "🗳️",
15-
"highlights": "🔔",
1615
"misc": "📝",
1716
"starboardsystem": "⭐",
1817
"whoisalias": "🔍",
1918
"utilityextra": "🛠️",
19+
"invitetracker": "📊",
2020
}
2121

2222
# Category descriptions
@@ -27,11 +27,11 @@
2727
"tags": "Create and manage custom text snippets for your server",
2828
"communitycommands": "Engage your community with quotes, questions, and memes",
2929
"election": "Democratic voting system with weighted votes",
30-
"highlights": "Get notified when your keywords are mentioned",
3130
"misc": "Miscellaneous utility commands",
3231
"starboardsystem": "Highlight the best messages with stars",
3332
"whoisalias": "User information and lookup commands",
3433
"utilityextra": "Extra utility commands like reminders, dice, and emotes",
34+
"invitetracker": "Professional invite tracking system with analytics",
3535
}
3636

3737

cogs/highlights.py

Lines changed: 0 additions & 133 deletions
This file was deleted.

cogs/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async def about(self, ctx: commands.Context):
9999
"⭐ Starboard\n"
100100
"🏷️ Custom Tags\n"
101101
"🗳️ Elections\n"
102-
"🔔 Highlights\n"
102+
"� Invite Tracker\n"
103103
"🎭 Fun Commands\n"
104104
"🛠️ Utilities"
105105
),

0 commit comments

Comments
 (0)