diff --git a/src/Bot/.config.py b/src/Bot/.config.py index c5ffb90..6cb3038 100644 --- a/src/Bot/.config.py +++ b/src/Bot/.config.py @@ -9,4 +9,5 @@ SDB_USER = "" SDB_PASS = "" SDB_NAMESPACE = "" -SDB_DATABASE = "" \ No newline at end of file +SDB_DATABASE = "" +COMMAND_PREFIX = "a!" diff --git a/src/Bot/discord.py b/src/Bot/discord.py index 31c0692..998bfc7 100644 --- a/src/Bot/discord.py +++ b/src/Bot/discord.py @@ -30,7 +30,7 @@ # Set up intents and create the bot client intents = nextcord.Intents.default() intents.message_content = True -client = commands.Bot(command_prefix="a!", intents=intents) +client = commands.Bot(command_prefix=config.COMMAND_PREFIX, intents=intents) # Create an aiohttp session session = aiohttp.ClientSession() diff --git a/src/Bot/guilded_bot.py b/src/Bot/guilded_bot.py index 04abaaf..37ae0d8 100644 --- a/src/Bot/guilded_bot.py +++ b/src/Bot/guilded_bot.py @@ -21,7 +21,7 @@ profiles_sample_rate=1.0, ) -client = commands.Bot(command_prefix="a!") +client = commands.Bot(command_prefix=config.COMMAND_PREFIX) client.help_command = None diff --git a/src/Bot/nerimity_bot.py b/src/Bot/nerimity_bot.py index ee0fe28..aff6ac4 100644 --- a/src/Bot/nerimity_bot.py +++ b/src/Bot/nerimity_bot.py @@ -12,7 +12,7 @@ client = nerimity.Client( token=config.NERIMITY_TOKEN, - prefix='a!', + prefix=config.COMMAND_PREFIX, ) async def send_message(endpoint, params): @@ -170,4 +170,4 @@ async def on_ready(client_info: dict): print(f"Logged in as {client.account.username}#{client.account.tag}") asyncio.create_task(iamup_loop()) -client.run() \ No newline at end of file +client.run() diff --git a/src/Bot/revolt_bot.py b/src/Bot/revolt_bot.py index 8149341..aef3255 100644 --- a/src/Bot/revolt_bot.py +++ b/src/Bot/revolt_bot.py @@ -22,7 +22,7 @@ profiles_sample_rate=1.0, ) -prefix = "gc!" +prefix = config.COMMAND_PREFIX def get_endpoint(server: revolt.Server):