Commit Graph

10 Commits

Author SHA1 Message Date
VinceC
93679f8828 summary
small update for bot output
2025-01-04 11:22:29 -06:00
VinceC
584fba7aa0 Update CommandHandler.js
# VRBattles Bot Updates - March 2024

## Command Improvements

### Find Team Command (`/findteam`)
- 🔄 Restructured command to require game selection before team name
- 🖼️ Added VR Battles image as the main embed image
- 🧹 Removed all buttons for cleaner display
- 📊 Implemented game mode sorting:
  - Priority order: Squads > Duo > Solo
  - Secondary sort by creation date (newest first)
- 🎨 Added game mode icons:
  - Squads: 🎮
  - Duo: 🎯
  - Solo: ⚔️
- 📝 Condensed stats display format:
  - M: matches
  - W: wins
  - L: losses
  - WR: win rate
- 👥 Made all team search results visible to everyone in the channel

### Find User Command (`/finduser`)
- 🔄 Restructured command to require game selection before username
- 🖼️ Added VR Battles image as the main embed image
- 🔍 Enhanced user search results:
  - Shows basic profile info even when no game stats are found
  - Displays user's avatar, bio, level, XP, and other profile details
  - Indicates if user is on a team but hasn't played matches
- 🔵 Simplified button layout:
  - Removed Discord invite button
  - Kept only the "View Profile" button
- 💬 Improved status messages:
  - Clear indication when user exists but hasn't played selected game
  - Shows team membership status for the selected game
2025-01-04 11:16:49 -06:00
VinceC
7e4354e37b Jan 2025 Update
Team Search Improvements:
Added required game selection before team name input
Added VR Battles image as the main embed image
Removed buttons for cleaner display
Added sorting by game mode (Squads > Duo > Solo)
Made team display more compact with icons and shortened stats
Added SQL injection protection and input sanitization
User Search Improvements:
Made game selection required before username input
Added VR Battles image as the main embed image
Added better user status messages:
played
Security Enhancements:
Added input validation and sanitization at multiple levels
Limited input lengths to prevent buffer overflow
Added proper error handling and logging
Implemented safe API calls with timeouts and validation
Added protection against SQL injection
Code Organization:
Improved error messages for better user feedback
Added comprehensive logging for monitoring
Made responses visible to everyone in the channel
Cleaned up code structure and removed redundant parts
Development Environment:
Set up proper development configuration
Added environment variable management
Improved command deployment process
2025-01-04 08:59:51 -06:00
VinceC
8a0f8f1137 feature team search 2025-01-04 05:26:57 -06:00
VinceC
75a3b3b52d show when stats are requested 2025-01-01 10:05:05 -06:00
VinceC
15082d03c7 fix: Use consistent lowercase for embedBuilders.js 2024-11-28 05:19:08 -06:00
VinceC
26a5edeb4f all commands and buttons are working 2024-11-28 04:47:58 -06:00
VinceC
92c1fa3a9e server registration and subscription 2024-11-28 02:53:42 -06:00
VinceC
bb06fb7d9b join discord button 2024-11-07 17:47:37 -06:00
VinceC
2b577c5be1 new commands update for the bot 2024-11-07 17:28:00 -06:00