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.
This commit is contained in:
@@ -15,7 +15,7 @@ from __future__ import annotations
|
||||
|
||||
from colorama import Fore, Style
|
||||
|
||||
from core import HexaHost
|
||||
from core import Axiom
|
||||
from utils.config import BotName
|
||||
|
||||
from .commands.help import Help
|
||||
@@ -94,34 +94,34 @@ from .events.autoreact import AutoReactListener
|
||||
from .events.ai import AIResponses
|
||||
from .events.stickymessage import StickyMessageListener
|
||||
|
||||
from .hexahost.antinuke import _antinuke
|
||||
from .hexahost.extra import _extra
|
||||
from .hexahost.general import _general
|
||||
from .hexahost.automod import _automod
|
||||
from .hexahost.moderation import _moderation
|
||||
from .hexahost.music import _music
|
||||
from .hexahost.fun import _fun
|
||||
from .hexahost.games import _games
|
||||
from .hexahost.ignore import _ignore
|
||||
from .hexahost.server import _server
|
||||
from .hexahost.voice import _voice
|
||||
from .hexahost.welcome import _welcome
|
||||
from .hexahost.giveaway import _giveaway
|
||||
from .hexahost.ticket import _ticket
|
||||
from .hexahost.logging import _logging
|
||||
from .hexahost.vanity import _vanity
|
||||
from .hexahost.inviteTracker import inviteTracker
|
||||
from .hexahost.counting import _Counting
|
||||
from .hexahost.j2c import _J2C
|
||||
from .hexahost.ai import _ai
|
||||
from .hexahost.booster import __boost
|
||||
from .hexahost.leveling import _leveling
|
||||
from .hexahost.sticky import _sticky
|
||||
from .hexahost.verify import _verify
|
||||
from .hexahost.encryption import _encrypt
|
||||
from .hexahost.mc import _mc
|
||||
from .hexahost.joindm import _joindm
|
||||
from .hexahost.birth import _birth
|
||||
from .axiom.antinuke import _antinuke
|
||||
from .axiom.extra import _extra
|
||||
from .axiom.general import _general
|
||||
from .axiom.automod import _automod
|
||||
from .axiom.moderation import _moderation
|
||||
from .axiom.music import _music
|
||||
from .axiom.fun import _fun
|
||||
from .axiom.games import _games
|
||||
from .axiom.ignore import _ignore
|
||||
from .axiom.server import _server
|
||||
from .axiom.voice import _voice
|
||||
from .axiom.welcome import _welcome
|
||||
from .axiom.giveaway import _giveaway
|
||||
from .axiom.ticket import _ticket
|
||||
from .axiom.logging import _logging
|
||||
from .axiom.vanity import _vanity
|
||||
from .axiom.inviteTracker import inviteTracker
|
||||
from .axiom.counting import _Counting
|
||||
from .axiom.j2c import _J2C
|
||||
from .axiom.ai import _ai
|
||||
from .axiom.booster import __boost
|
||||
from .axiom.leveling import _leveling
|
||||
from .axiom.sticky import _sticky
|
||||
from .axiom.verify import _verify
|
||||
from .axiom.encryption import _encrypt
|
||||
from .axiom.mc import _mc
|
||||
from .axiom.joindm import _joindm
|
||||
from .axiom.birth import _birth
|
||||
|
||||
from .antinuke.anti_member_update import AntiMemberUpdate
|
||||
from .antinuke.antiban import AntiBan
|
||||
@@ -191,7 +191,7 @@ COG_CLASSES: tuple[type, ...] = (
|
||||
)
|
||||
|
||||
|
||||
async def setup(bot: HexaHost) -> None:
|
||||
async def setup(bot: Axiom) -> None:
|
||||
for cog_cls in COG_CLASSES:
|
||||
await bot.add_cog(cog_cls(bot))
|
||||
print(Fore.RED + Style.BRIGHT + f"Loaded cog: {cog_cls.__name__}")
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
import os
|
||||
from core import Cog, HexaHost, Context
|
||||
from core import Cog, Axiom, Context
|
||||
import games as games
|
||||
from utils.Tools import *
|
||||
from utils.cv2 import CV2
|
||||
@@ -25,9 +25,9 @@ import asyncio
|
||||
|
||||
|
||||
class Games(Cog):
|
||||
"""HexaHost Games"""
|
||||
"""Axiom Games"""
|
||||
|
||||
def __init__(self, client: HexaHost):
|
||||
def __init__(self, client: Axiom):
|
||||
self.client = client
|
||||
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import datetime
|
||||
import re
|
||||
from typing import *
|
||||
from time import strftime
|
||||
from core import Cog, HexaHost, Context
|
||||
from core import Cog, Axiom, Context
|
||||
from discord.ui import LayoutView, TextDisplay, Separator, Container
|
||||
from utils.cv2 import CV2, build_container
|
||||
|
||||
@@ -49,7 +49,7 @@ datefmt ="%H:%M:%S",
|
||||
)
|
||||
|
||||
class Booster (Cog ):
|
||||
def __init__ (self ,bot : HexaHost ):
|
||||
def __init__ (self ,bot : Axiom ):
|
||||
self .bot =bot
|
||||
self .color =0xFF0000
|
||||
self .db_path =db_path("boost.db")
|
||||
|
||||
@@ -30,7 +30,7 @@ from typing import *
|
||||
from utils import *
|
||||
from utils.config import BotName, serverLink
|
||||
from utils import Paginator, DescriptionEmbedPaginator, FieldPagePaginator, TextPaginator
|
||||
from core import Cog, HexaHost, Context
|
||||
from core import Cog, Axiom, Context
|
||||
from typing import Optional
|
||||
import aiosqlite
|
||||
import asyncio
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
import asyncio
|
||||
import discord
|
||||
from utils.emoji import CROSS, TICK, ZWARNING, HEXAHOST_CONNECTION, HEXAHOST_LINKS
|
||||
from utils.emoji import CROSS, TICK, ZWARNING, AXIOM_CONNECTION, AXIOM_LINKS
|
||||
from discord.ext import commands, tasks
|
||||
from discord.utils import get
|
||||
import datetime
|
||||
@@ -308,8 +308,8 @@ class General(commands.Cog):
|
||||
async def invite(self, ctx: commands.Context):
|
||||
invite_text = (
|
||||
"```Empower your server with blazing-fast features and 24/7 support!```\n"
|
||||
f"{HEXAHOST_LINKS} **Quick Actions**\n"
|
||||
f"{AXIOM_LINKS} **Quick Actions**\n"
|
||||
f">>> **[Invite {BotName}](https://discord.com/oauth2/authorize?client_id=1396114795102470196&permissions=8&integration_type=0&scope=bot+applications.commands)**\n"
|
||||
"**[Support Server](https://discord.gg/hexahost)**"
|
||||
)
|
||||
await ctx.send(view=CV2(f"{HEXAHOST_CONNECTION} {BotName} Integration Hub!", invite_text))
|
||||
await ctx.send(view=CV2(f"{AXIOM_CONNECTION} {BotName} Integration Hub!", invite_text))
|
||||
@@ -18,7 +18,7 @@ from discord import app_commands, Interaction
|
||||
from difflib import get_close_matches
|
||||
from contextlib import suppress
|
||||
from core import Context
|
||||
from core.hexahost import HexaHost
|
||||
from core.axiom import Axiom
|
||||
from core.Cog import Cog
|
||||
from utils.Tools import getConfig
|
||||
from itertools import chain
|
||||
@@ -268,7 +268,7 @@ class HelpCommand(commands.HelpCommand):
|
||||
|
||||
class Help(Cog, name="help"):
|
||||
|
||||
def __init__(self, client: HexaHost):
|
||||
def __init__(self, client: Axiom):
|
||||
self._original_help_command = client.help_command
|
||||
attributes = {
|
||||
'name': "help",
|
||||
|
||||
@@ -21,7 +21,7 @@ from discord.ui import Button, View, LayoutView, TextDisplay, Separator, Contain
|
||||
import wavelink
|
||||
from wavelink.enums import TrackSource
|
||||
from utils import Paginator, DescriptionEmbedPaginator
|
||||
from core import Cog, HexaHost, Context
|
||||
from core import Cog, Axiom, Context
|
||||
from PIL import Image, ImageDraw, ImageFont, ImageOps
|
||||
import io
|
||||
import aiohttp
|
||||
@@ -334,7 +334,7 @@ class MusicControlView(LayoutView):
|
||||
|
||||
|
||||
class Music(commands.Cog):
|
||||
def __init__(self, client: HexaHost):
|
||||
def __init__(self, client: Axiom):
|
||||
self.client = client
|
||||
self.client.loop.create_task(self.connect_nodes())
|
||||
self.client.loop.create_task(self.monitor_inactivity())
|
||||
|
||||
@@ -15,7 +15,7 @@ from utils.db_paths import db_path
|
||||
from discord.ext import commands, tasks
|
||||
from discord import *
|
||||
import discord
|
||||
from utils.emoji import BOOST, ICONS_WARNING, INFO, MENTION, PREMIUM, TICK, TIME, TIMER_ALT1, U_ADMIN, ZDIL, ZHUMAN, HEXAHOST_HAMMER, HEXAHOST_SYS
|
||||
from utils.emoji import BOOST, ICONS_WARNING, INFO, MENTION, PREMIUM, TICK, TIME, TIMER_ALT1, U_ADMIN, ZDIL, ZHUMAN, AXIOM_HAMMER, AXIOM_SYS
|
||||
import aiosqlite
|
||||
from typing import Optional
|
||||
from datetime import datetime, timedelta
|
||||
@@ -143,7 +143,7 @@ class TimeSelect(Select):
|
||||
await log_channel.send(view=embed)
|
||||
|
||||
embed = CV2Embed(
|
||||
description=f"**Added Global No Prefix**:\n{ZHUMAN} User: **{self.user.mention}**\n{MENTION} User Mention: {self.user.mention}\n{HEXAHOST_SYS} User ID: {self.user.id}\n\n__**Additional Info**__:\n{HEXAHOST_HAMMER} Added By: **{self.author.display_name}**\n{TIME} Expiry Time: {expiry_text}\n{BOOST} Timestamp: {expiry_timestamp}",
|
||||
description=f"**Added Global No Prefix**:\n{ZHUMAN} User: **{self.user.mention}**\n{MENTION} User Mention: {self.user.mention}\n{AXIOM_SYS} User ID: {self.user.id}\n\n__**Additional Info**__:\n{AXIOM_HAMMER} Added By: **{self.author.display_name}**\n{TIME} Expiry Time: {expiry_text}\n{BOOST} Timestamp: {expiry_timestamp}",
|
||||
color=0xFF0000,
|
||||
)
|
||||
embed.set_author(
|
||||
|
||||
@@ -26,7 +26,7 @@ from utils import Paginator, DescriptionEmbedPaginator, FieldPagePaginator, Text
|
||||
from utils.Tools import *
|
||||
from utils.config import OWNER_IDS, BOT_OWNER_IDS
|
||||
from utils.emoji import BOOSTS, DISCORD_BADGE_EMOJIS, LOADINGRED, NITRO_BOOST, TICK, ZWARNING
|
||||
from core import Cog, HexaHost, Context
|
||||
from core import Cog, Axiom, Context
|
||||
import sqlite3
|
||||
import os
|
||||
import requests
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
from utils.db_paths import db_path
|
||||
|
||||
import discord
|
||||
from utils.emoji import CODEBASE, LOADING, SYSTEM, THUNDER, HEXAHOST_CODE, HEXAHOST_COMMAND, HEXAHOST_GLOBAL, HEXAHOST_OWNER, HEXAHOST_SEARCH
|
||||
from utils.emoji import CODEBASE, LOADING, SYSTEM, THUNDER, AXIOM_CODE, AXIOM_COMMAND, AXIOM_GLOBAL, AXIOM_OWNER, AXIOM_SEARCH
|
||||
import psutil
|
||||
import sys
|
||||
import os
|
||||
@@ -60,27 +60,27 @@ def create_stats_content(stats_data, selected):
|
||||
f"**{SYSTEM} Hardware**\n"
|
||||
f"Cpu Usage: **{stats_data['cpu']}%**\n"
|
||||
f"Ram Usage: **{stats_data['ram']}%**\n\n"
|
||||
f"**{HEXAHOST_CODE} Software**\n"
|
||||
f"**{AXIOM_CODE} Software**\n"
|
||||
f"Python: **{sys.version_info.major}.{sys.version_info.minor}**\n"
|
||||
f"Discord.py: **{discord.__version__}**"
|
||||
),
|
||||
"General Info": (
|
||||
f"**Uptime**: `{stats_data['uptime']}`\n\n"
|
||||
f"**{HEXAHOST_GLOBAL} Server Stats**\n"
|
||||
f"**{AXIOM_GLOBAL} Server Stats**\n"
|
||||
f"Guilds: **{stats_data['guilds']}**\n"
|
||||
f"Users: **{stats_data['users']}**\n\n"
|
||||
f"**{HEXAHOST_COMMAND} Commands Stats**\n"
|
||||
f"**{AXIOM_COMMAND} Commands Stats**\n"
|
||||
f"Total Commands: **{stats_data['all_cmds']}**\n"
|
||||
f"Slash Commands: **{stats_data['slash_cmds']}**"
|
||||
),
|
||||
"Team Info": (
|
||||
"There is only one person who made me. Thanks to him ❤️.\n\n"
|
||||
f"**{HEXAHOST_OWNER} Main Owner**\n"
|
||||
f"**{AXIOM_OWNER} Main Owner**\n"
|
||||
"[01]. [runxking](https://discord.com/users/767979794411028491)\n"
|
||||
"[02]. [Ray](https://discord.com/users/870179991462236170)"
|
||||
),
|
||||
"Code Info": (
|
||||
f"**{HEXAHOST_SEARCH} Codebase Overview**\n\n"
|
||||
f"**{AXIOM_SEARCH} Codebase Overview**\n\n"
|
||||
f"Files: **{stats_data['files']}**\n"
|
||||
f"Lines: **{stats_data['lines']}**\n"
|
||||
f"Words: **{stats_data['words']}**"
|
||||
@@ -110,7 +110,7 @@ class StatsView(LayoutView):
|
||||
),
|
||||
discord.SelectOption(
|
||||
label="General Info",
|
||||
emoji=HEXAHOST_GLOBAL,
|
||||
emoji=AXIOM_GLOBAL,
|
||||
description="General info",
|
||||
),
|
||||
discord.SelectOption(
|
||||
@@ -120,7 +120,7 @@ class StatsView(LayoutView):
|
||||
),
|
||||
discord.SelectOption(
|
||||
label="Code Info",
|
||||
emoji=HEXAHOST_SEARCH,
|
||||
emoji=AXIOM_SEARCH,
|
||||
description="Code stats",
|
||||
),
|
||||
],
|
||||
|
||||
@@ -16,11 +16,11 @@ import json
|
||||
import aiosqlite
|
||||
from discord.ext import commands
|
||||
from utils.config import serverLink
|
||||
from core import HexaHost, Cog, Context
|
||||
from core import Axiom, Cog, Context
|
||||
from utils.Tools import get_ignore_data
|
||||
|
||||
class Errors(Cog):
|
||||
def __init__(self, client: HexaHost):
|
||||
def __init__(self, client: Axiom):
|
||||
self.client = client
|
||||
|
||||
@commands.Cog.listener()
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
import discord
|
||||
from utils.emoji import ARROWRED, ZMODULE
|
||||
from discord.utils import *
|
||||
from core import HexaHost, Cog
|
||||
from core import Axiom, Cog
|
||||
from utils.Tools import *
|
||||
from utils.config import BotName, serverLink
|
||||
from discord.ext import commands
|
||||
from discord.ui import Button, View
|
||||
|
||||
class Autorole(Cog):
|
||||
def __init__(self, bot: HexaHost):
|
||||
def __init__(self, bot: Axiom):
|
||||
self.bot = bot
|
||||
|
||||
|
||||
|
||||
@@ -14,13 +14,13 @@ from utils.db_paths import db_path
|
||||
|
||||
import discord
|
||||
from utils.emoji import ZWARNING
|
||||
from core import HexaHost, Cog
|
||||
from core import Axiom, Cog
|
||||
from discord.ext import commands
|
||||
import aiosqlite
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
class AutoBlacklist(Cog):
|
||||
def __init__(self, client: HexaHost):
|
||||
def __init__(self, client: Axiom):
|
||||
self.client = client
|
||||
self.spam_cd_mapping = commands.CooldownMapping.from_cooldown(5, 5, commands.BucketType.member)
|
||||
self.spam_command_mapping = commands.CooldownMapping.from_cooldown(6, 10, commands.BucketType.member)
|
||||
|
||||
@@ -18,14 +18,14 @@ import aiosqlite
|
||||
import asyncio
|
||||
import logging
|
||||
from discord.ext import commands
|
||||
from core import HexaHost, Cog
|
||||
from core import Axiom, Cog
|
||||
from utils.config import *
|
||||
|
||||
DATABASE_PATH = db_path('autorole.db')
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class Autorole2(Cog):
|
||||
def __init__(self, bot: HexaHost):
|
||||
def __init__(self, bot: Axiom):
|
||||
self.bot = bot
|
||||
self.headers = {"Authorization": f"Bot {self.bot.http.token}"}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ from utils.db_paths import db_path
|
||||
from utils import getConfig
|
||||
from utils.config import BotName
|
||||
import discord
|
||||
from utils.emoji import ARROWRED, CODEBASE, HEART3, INDEX, HEXAHOST_LINKS
|
||||
from utils.emoji import ARROWRED, CODEBASE, HEART3, INDEX, AXIOM_LINKS
|
||||
from discord.ui import LayoutView, TextDisplay, Separator, Container, ActionRow, Select
|
||||
from discord.ext import commands
|
||||
from utils.Tools import get_ignore_data
|
||||
@@ -44,7 +44,7 @@ class MentionSelectView(LayoutView):
|
||||
),
|
||||
discord.SelectOption(
|
||||
label="Links",
|
||||
emoji=HEXAHOST_LINKS,
|
||||
emoji=AXIOM_LINKS,
|
||||
description="Useful bot links",
|
||||
),
|
||||
],
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# ╚══════════════════════════════════════════════════════════════════╝
|
||||
|
||||
from discord.ext import commands
|
||||
from core import HexaHost, Cog
|
||||
from core import Axiom, Cog
|
||||
import discord
|
||||
from utils.emoji import ARROWRED, KING, ZBOT, ZHUMAN, ZROCKET
|
||||
import logging
|
||||
@@ -27,7 +27,7 @@ logging.basicConfig(
|
||||
|
||||
|
||||
class Guild(Cog):
|
||||
def __init__(self, client: HexaHost):
|
||||
def __init__(self, client: Axiom):
|
||||
self.client = client
|
||||
self.bot = client
|
||||
self.recently_removed_guilds = set()
|
||||
|
||||
@@ -20,7 +20,7 @@ import typing
|
||||
import typing as t
|
||||
from typing import *
|
||||
from utils.Tools import *
|
||||
from core import Cog, HexaHost, Context
|
||||
from core import Cog, Axiom, Context
|
||||
from discord.ext.commands import Converter
|
||||
from discord.ext import commands, tasks
|
||||
from discord.ui import Button, View
|
||||
|
||||
Reference in New Issue
Block a user