Commit Graph

64 Commits

Author SHA1 Message Date
f999a938a5 Merges pull request #3
Main
2025-07-13 09:19:49 +00:00
VinceC
a8e836fd5b Add help system, deployment docs, and improve setup
Introduces a new interactive help command with button navigation, adds a detailed DEPLOYMENT.md guide, and improves server setup validation and error handling. Updates command registration to include all 9 games, adds version reporting, enhances Docker deployment with a multi-platform script, and removes local .env files from the repo. Also refactors bot startup for better diagnostics and graceful shutdown.
2025-07-13 04:00:39 -05:00
6b904d765d Merges pull request #2
Dev
2025-01-04 18:41:25 +00:00
VinceC
06742518d6 test (#9)
* Dev (#7)

* health check

* Update Dockerfile

* simplifying the deployment

* Dev (#8)

* health check

* Update Dockerfile

* simplifying the deployment

* Update Bot.js

makes the find team command public
2025-01-04 12:37:54 -06:00
VinceC
5b0dd201ca Update Bot.js
makes the find team command public
2025-01-04 12:36:08 -06:00
VinceC
f3b6625527 simplifying the deployment 2025-01-04 12:04:49 -06:00
VinceC
667dc6eddb Update Dockerfile 2025-01-04 11:57:50 -06:00
VinceC
8c7c3fc257 health check 2025-01-04 11:53:48 -06:00
VinceC
fb718c47f0 docker file update 2025-01-04 11:45:46 -06:00
VinceC
e86e5f2778 env update 2025-01-04 11:36:27 -06:00
cd5b0b580c Merges pull request #1
Dev
2025-01-04 17:34:47 +00:00
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
5a836a537f Merge pull request #1 from Fragmint-git/team-search
feature team search
2025-01-04 06:09:47 -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
1ad3a11bd3 Update embedBuilders.js
match request update
2025-01-01 09:58:50 -06:00
VinceC
35e58972a8 fix: correct team size display to prevent doubling 2024-11-29 04:37:34 -06:00
VinceC
426bdaceb7 fix: improve match notification handling and embed display 2024-11-29 04:34:55 -06:00
VinceC
3651537c1f feat: update match request embed format and notification handling 2024-11-29 04:27:09 -06:00
VinceC
03c612b351 feat: Update match notification format to be more concise 2024-11-29 04:06:56 -06:00
VinceC
beab9a514a feat: Complete match notification service implementation 2024-11-29 03:42:21 -06:00
VinceC
15082d03c7 fix: Use consistent lowercase for embedBuilders.js 2024-11-28 05:19:08 -06:00
VinceC
1956c5ee3d feat: Update match notification system and component builders 2024-11-28 05:15:11 -06:00
VinceC
119891730d match request update 2024-11-28 04:59:46 -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
ad6d98d501 Notification subscriptions 2024-11-24 06:04:35 -06:00
VinceC
3b10e77c82 supabase setup 2024-11-24 03:49:23 -06:00
VinceC
c62c1f81e4 Update deploy-commands.js 2024-11-24 03:25:10 -06:00
VinceC
1cee965d00 subscribe update 2024-11-24 03:15:04 -06:00
VinceC
12722b6fd4 update game urls and embed info 2024-11-24 01:35:04 -06:00
VinceC
82354dcfea Update componentBuilders.js
button update
2024-11-24 01:27:14 -06:00
VinceC
049420e8e5 Update package.json 2024-11-23 22:56:53 -06:00
VinceC
5564d8ab21 Create testWebhook.js
testing webhook
2024-11-23 22:54:15 -06:00
VinceC
530ecc8e17 November Update
A variety of bot updates, verify setup, and match request info
2024-11-23 22:25:10 -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
VinceC
7b431e0406 Update index.js 2024-10-18 10:30:18 -05:00
VinceC
f46933e134 Update index.js 2024-10-18 10:25:01 -05:00
VinceC
c560e3d6a1 Update index.js 2024-10-18 10:19:33 -05:00
VinceC
9bd4205243 Update index.js 2024-10-18 10:10:14 -05:00
VinceC
c4bb0dff37 Update index.js 2024-10-18 10:03:32 -05:00
VinceC
0650b1e94a update test 2024-10-18 09:44:42 -05:00
VinceC
1d4c61e2cb bot update 2024-10-18 09:10:28 -05:00
VinceC
dd32b7c651 Update index.js 2024-09-22 13:29:32 -05:00
VinceC
a85754af3e Update index.js 2024-09-22 02:50:15 -05:00
VinceC
cb3deb8cbc Update index.js 2024-09-22 02:47:45 -05:00
VinceC
7fd99027b3 Update index.js 2024-09-22 02:26:50 -05:00