Refactor project branding from HexaHost to Axiom across all configurations, documentation, and code files. Update environment variables, Docker setup, and README to reflect the new brand name. Ensure consistency in naming conventions and improve clarity in setup instructions.
Some checks failed
CI / Bot (Python) (push) Failing after 12s
CI / Dashboard (Next.js) (push) Failing after 9s

This commit is contained in:
TheOnlyMace
2026-07-21 19:45:07 +02:00
parent 03c8f2ec2c
commit daf3338382
84 changed files with 238 additions and 236 deletions

View File

@@ -37,13 +37,13 @@ import json
import os
if TYPE_CHECKING:
from core.hexahost import HexaHost
from core.axiom import Axiom
router = APIRouter()
@router.get("/", response_model=List[GuildSummary], summary="List all guilds", description="Returns guilds the authenticated user can manage that the bot is in.")
async def list_guilds(request: Request, bot: "HexaHost" = Depends(get_bot)):
async def list_guilds(request: Request, bot: "Axiom" = Depends(get_bot)):
"""
Lists guilds the bot is in, filtered to those the caller can manage on Discord.
"""
@@ -64,7 +64,7 @@ async def list_guilds(request: Request, bot: "HexaHost" = Depends(get_bot)):
return guilds_list
@router.get("/{guild_id}", response_model=GuildDetails, summary="Get guild details", description="Returns detailed metrics and metadata for a specific Discord guild.")
async def get_guild_details(guild_id: int, bot: "HexaHost" = Depends(get_bot)):
async def get_guild_details(guild_id: int, bot: "Axiom" = Depends(get_bot)):
"""
Returns detailed info for a specific guild by its ID.
"""
@@ -820,7 +820,7 @@ async def get_guild_j2c(guild_id: int):
return J2CConfig(guild_id=str(guild_id))
@router.patch("/{guild_id}/j2c", summary="Update J2C config")
async def patch_guild_j2c(guild_id: int, data: J2CUpdate, bot: "HexaHost" = Depends(get_bot)):
async def patch_guild_j2c(guild_id: int, data: J2CUpdate, bot: "Axiom" = Depends(get_bot)):
import aiosqlite
def to_id(val):
@@ -1000,7 +1000,7 @@ async def patch_guild_customroles(guild_id: int, data: CustomRoleUpdate):
return {"status": "success"}
@router.get("/{guild_id}/logging", response_model=LoggingConfig, summary="Get Logging config", description="Retrieves the event logging configuration and designated log channels.")
async def get_guild_logging(guild_id: int, bot: "HexaHost" = Depends(get_bot)):
async def get_guild_logging(guild_id: int, bot: "Axiom" = Depends(get_bot)):
"""
Retrieves the logging configuration for a specific guild.
"""
@@ -1044,7 +1044,7 @@ async def get_guild_logging(guild_id: int, bot: "HexaHost" = Depends(get_bot)):
)
@router.patch("/{guild_id}/logging", summary="Update Logging config", description="Updates which Discord events are logged and where they are posted.")
async def patch_guild_logging(guild_id: int, data: LoggingUpdate, bot: "HexaHost" = Depends(get_bot)):
async def patch_guild_logging(guild_id: int, data: LoggingUpdate, bot: "Axiom" = Depends(get_bot)):
"""
Updates the logging configuration for a specific guild.
"""
@@ -1076,7 +1076,7 @@ async def patch_guild_logging(guild_id: int, data: LoggingUpdate, bot: "HexaHost
return {"status": "success", "guild_id": guild_id}
@router.get("/{guild_id}/leveling/leaderboard", response_model=List[LeaderboardEntry], summary="Get leveling leaderboard", description="Returns top users by XP for a specific guild.")
async def get_leveling_leaderboard(guild_id: int, bot: "HexaHost" = Depends(get_bot)):
async def get_leveling_leaderboard(guild_id: int, bot: "Axiom" = Depends(get_bot)):
db = await db_manager.get_connection(db_path('leveling.db'))
cursor = await db.execute(
"SELECT user_id, xp FROM user_xp WHERE guild_id = ? ORDER BY xp DESC LIMIT 100",
@@ -1116,7 +1116,7 @@ async def get_leveling_leaderboard(guild_id: int, bot: "HexaHost" = Depends(get_
return leaderboard
@router.get("/{guild_id}/channels", response_model=List[DiscordChannel], summary="Get guild channels", description="Returns a list of all channels for the specific guild.")
async def get_guild_channels(guild_id: int, bot: "HexaHost" = Depends(get_bot)):
async def get_guild_channels(guild_id: int, bot: "Axiom" = Depends(get_bot)):
guild = bot.get_guild(guild_id)
if not guild:
raise HTTPException(status_code=404, detail="Guild not found")
@@ -1136,7 +1136,7 @@ async def get_guild_channels(guild_id: int, bot: "HexaHost" = Depends(get_bot)):
return channels
@router.get("/{guild_id}/roles", response_model=List[DiscordRole], summary="Get guild roles", description="Returns a list of roles for the specific guild.")
async def get_guild_roles(guild_id: int, bot: "HexaHost" = Depends(get_bot)):
async def get_guild_roles(guild_id: int, bot: "Axiom" = Depends(get_bot)):
guild = bot.get_guild(guild_id)
if not guild:
raise HTTPException(status_code=404, detail="Guild not found")