Commit graph

25 commits

Author SHA1 Message Date
sirpiglr
b002fd39da Remove extraneous logging from federation API endpoints
Remove debug console logs related to Supabase queries in federation API endpoints.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 3dfbd55a-0af2-4285-a997-4684ffb6211b
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/2a77Jky
Replit-Helium-Checkpoint-Created: true
2025-12-13 18:15:24 +00:00
sirpiglr
6fb0e785f6 Add missing tables to Supabase and improve API logging for federation data
Creates SQL migration script for federation tables in Supabase and adds detailed logging to federation API endpoints in webServer.js.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: f067ae59-c14c-4c16-bbf9-bb3883920fcc
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/BXwPVpJ
Replit-Helium-Checkpoint-Created: true
2025-12-13 17:28:38 +00:00
sirpiglr
c7c4705c52 Add a daily scheduler to evaluate and update federation trust levels
Introduces a new daily scheduler in `bot.js` to evaluate federation server trust levels based on member count and other factors. Includes an API endpoint `/api/federation/guild/:guildId` in `webServer.js` to fetch guild-specific federation status, and updates `dashboard.html` to display this information.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 342196c8-6efc-4cab-9367-2e90abd6f3e1
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/HdH3K6u
Replit-Helium-Checkpoint-Created: true
2025-12-13 10:52:52 +00:00
sirpiglr
a1912fc48a Add verification success endpoint and improve trust level system
Adds a POST endpoint `/api/verify-success` to `webServer.js` for handling verification callbacks from aethex.dev, including secret validation and role assignment. Updates `federationProtection.js` and `federation.js` to integrate trust level calculations and benefits. Introduces a new `trustLevels.js` utility file to manage trust level definitions, progression, and related logic.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 98ebd9a6-5755-4d7f-ae64-9ed93f1eae4f
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/3tJ1Z1J
Replit-Helium-Checkpoint-Created: true
2025-12-13 10:11:52 +00:00
sirpiglr
73ff5bcce3 Add verification status command and improve verification process
Implement upsert for verification codes to fix race conditions, add a webhook listener for role assignment upon verification, introduce error handling for service unavailability, and create a new `/verify-status` command.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 9196f58c-47c2-4081-b01f-74e1fcdae7cd
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/3tJ1Z1J
Replit-Helium-Checkpoint-Created: true
2025-12-13 10:05:53 +00:00
sirpiglr
03c30058f1 Add server backup and restore functionality for administrators
Implements a new backup command with subcommands for creating, listing, viewing, restoring, deleting, configuring auto-backups, and comparing server states. Adds API endpoints for managing backups and integrates backup features into the dashboard UI.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 5b902c89-a0d5-43f0-923c-324d0f4e4e7d
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/TibkBZT
Replit-Helium-Checkpoint-Created: true
2025-12-13 04:15:06 +00:00
sirpiglr
299db195c6 Add bulk moderation actions for server administrators
Adds a new `/bulkmod` slash command and a corresponding API endpoint to `webServer.js` to handle bulk moderation actions (ban, kick, timeout, warn, remove_timeout) for up to 25 users at once. Also adds a new "Bulk Actions" tab to the dashboard.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 9c56d07f-e250-4dd9-8108-5c170cbdb44f
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/INbSSam
Replit-Helium-Checkpoint-Created: true
2025-12-12 23:58:15 +00:00
sirpiglr
467fd8467f Add command cooldown management to the dashboard interface
Implement new API endpoints and UI elements for managing command cooldowns, including setting, listing, and resetting them. Also, refactor cooldown cache invalidation logic to resolve circular dependency issues.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 10157b12-ee9f-4185-90e0-2ab9db23a6da
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/bakeZwZ
Replit-Helium-Checkpoint-Created: true
2025-12-12 23:53:31 +00:00
sirpiglr
3e26b99d65 Add functionality to automatically award roles based on user activity
Adds new API endpoints and frontend components for managing automatic role rewards based on various user activity milestones, including validation for milestone values and improved handling of guild data.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 2417c2c2-9cf1-48e0-b7b0-da47f0f0530a
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/bakeZwZ
Replit-Helium-Checkpoint-Created: true
2025-12-12 23:46:17 +00:00
sirpiglr
ede721af0f Add a new coins system for users to earn and spend currency
Implement new API endpoints for retrieving and configuring guild coins, and add a dedicated section in the dashboard for coin-related information.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 1a60159e-fbc2-40e0-8dc7-acade23267a8
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/bakeZwZ
Replit-Helium-Checkpoint-Created: true
2025-12-12 23:38:43 +00:00
sirpiglr
dc7fb514b8 Add ability to manage custom user titles and display them
Implements new API endpoints and frontend components for fetching, displaying, and managing user-assigned titles within guilds.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 0a92717b-79d5-4240-a961-0b8ba7d9616c
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/bakeZwZ
Replit-Helium-Checkpoint-Created: true
2025-12-12 23:33:11 +00:00
sirpiglr
84d7720819 Add moderation and analytics pages to the dashboard interface
Implement new API endpoints for moderation statistics, warnings, bans, and activity feed data in webServer.js, and add corresponding sections and navigation to dashboard.html.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 72415ade-753e-448a-a127-8d4fee249942
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/bakeZwZ
Replit-Helium-Checkpoint-Created: true
2025-12-12 23:26:55 +00:00
sirpiglr
8c2dee5d9e Add pricing page and update navigation links
Replaced `.single()` with `.maybeSingle()` in multiple command files to handle cases where no record is found, and added a new /pricing route and navigation links to the UI.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: e91d020a-35a6-4add-9945-887dd3ecae9f
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/tdDjujk
Replit-Helium-Checkpoint-Created: true
2025-12-10 02:36:59 +00:00
sirpiglr
150ec17072 Add pricing plans and integrate Stripe for server upgrades
Add new styling and HTML structure for pricing cards to federation.html, and configure Stripe webhook handling in webServer.js to manage subscription events and update server tiers in the database.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 2926813b-ebbf-4fd8-aa3c-58eb0dbcf182
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/0iqMcgO
Replit-Helium-Checkpoint-Created: true
2025-12-10 02:08:27 +00:00
sirpiglr
76cad00dd9 Enhance bot with federation protection and new command features
Introduces federation protection listener, expands federation commands, adds federation API endpoints to web server, and updates bot status to 'Protecting the Federation'.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: d254ee4b-e69e-44a5-b1be-b89c088a485a
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/FUs0R2K
Replit-Helium-Checkpoint-Created: true
2025-12-10 01:41:25 +00:00
sirpiglr
698f294091 Update website layout and routing for features and commands pages
Adds explicit routes for `/features` and `/commands` in `webServer.js` and refactors the CSS in `commands.html` to implement a tabbed interface for command categories.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 6dc964b3-5abf-4d4a-9ac7-90bc8da671b6
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/RUkyrBF
Replit-Helium-Checkpoint-Created: true
2025-12-10 00:10:45 +00:00
sirpiglr
50645175da Align shop and inventory data with database schema changes
Update shop GET endpoint to filter by `enabled` instead of `available`. Correct user inventory query to select `item_data` from `shop_items` table, replacing the deprecated `value` column.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 411c419b-dfbc-456d-b53c-0a81a700fbda
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/oWFvNCu
Replit-Helium-Checkpoint-Created: true
2025-12-09 04:12:46 +00:00
sirpiglr
4e9873d76a Align shop item functionality with database schema
Update API endpoints and dashboard form to use the `enabled` column instead of `available` to resolve a database schema mismatch. This also includes adding `category` and `item_data` to the API payload and improving error reporting for shop item creation and updates.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: c573fbd6-0ec0-4669-a499-27b140fa044c
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/oWFvNCu
Replit-Helium-Checkpoint-Created: true
2025-12-09 04:09:07 +00:00
sirpiglr
3b65492e74 Update server icons to display correctly in the dashboard
Correctly format the Discord CDN URL for guild icons in the /api/me endpoint response.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 68bc133b-90dd-45fd-a96b-f7ff6f10bf54
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/oWFvNCu
Replit-Helium-Checkpoint-Created: true
2025-12-09 04:04:00 +00:00
sirpiglr
ab7fdce9dd Update XP settings to include new configuration options and improve existing ones
Refactor `aethex-bot/public/dashboard.html` to update XP settings UI and `aethex-bot/server/webServer.js` to handle new XP configuration parameters, including enabling/disabling XP, message XP, reaction XP, and leveling difficulty.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 4e47823a-b103-49a5-a57b-388765b0bcd5
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/oWFvNCu
Replit-Helium-Checkpoint-Created: true
2025-12-09 04:00:06 +00:00
sirpiglr
cbb7619552 Add new admin pages and update XP configuration endpoint
Introduces new API endpoints for XP configuration and quests, along with frontend updates in dashboard.html for styling and field name consistency.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 4b20cda7-6144-4154-8c0b-880fe406cb59
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/xfdSNeM
Replit-Helium-Checkpoint-Created: true
2025-12-09 03:04:32 +00:00
sirpiglr
3030379072 Update base URL to use custom domain for the bot
Change the base URL in webServer.js from the Replit deployment URL to use the configured `BASE_URL` environment variable, defaulting to `https://bot.aethex.dev`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: d7464c02-f803-4f2c-b6ad-c5f0ef687903
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/h41eDR1
Replit-Helium-Checkpoint-Created: true
2025-12-09 02:07:04 +00:00
sirpiglr
c8cce7f93a Set the website's login redirect to always use the production URL
Update server configuration to use a fixed production URL for OAuth redirects, simplifying setup and resolving "Invalid redirect URI" errors.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 82696845-8f64-4a63-b9fe-b3735f07d433
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/h41eDR1
Replit-Helium-Checkpoint-Created: true
2025-12-09 01:59:23 +00:00
sirpiglr
4fa6125179 Update website theme to blue and fix leaderboard link and support URL
Updated CSS and HTML files to change the theme from purple to blue, updated the support link to discord.gg/athx, and implemented a redirect for the /leaderboard route to the dashboard page.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: cfc706c7-9dea-4636-b8b6-cad88a7185f7
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/xrPDlOm
Replit-Helium-Checkpoint-Created: true
2025-12-09 00:56:58 +00:00
sirpiglr
be74f5f0bf Update web server and dashboard styling for improved user experience
Refactor bot.js to separate HTTP server logic and introduce Express web portal. Update dashboard.html with new styling, color themes, and font imports.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 17beead7-b08f-41f9-a6ea-f8e2ff20a502
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/b2aEQYO
Replit-Helium-Checkpoint-Created: true
2025-12-08 23:59:05 +00:00