Skip to content

Commit

Permalink
Merge pull request #9 from ironswordX/main
Browse files Browse the repository at this point in the history
Easily changeable command prefix
  • Loading branch information
Deutscher775 authored Jan 29, 2025
2 parents 0b9f1d2 + 8ac1a79 commit f580968
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/Bot/.config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
SDB_USER = ""
SDB_PASS = ""
SDB_NAMESPACE = ""
SDB_DATABASE = ""
SDB_DATABASE = ""
COMMAND_PREFIX = "a!"
2 changes: 1 addition & 1 deletion src/Bot/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/Bot/guilded_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Bot/nerimity_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

client = nerimity.Client(
token=config.NERIMITY_TOKEN,
prefix='a!',
prefix=config.COMMAND_PREFIX,
)

async def send_message(endpoint, params):
Expand Down Expand Up @@ -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()
client.run()
2 changes: 1 addition & 1 deletion src/Bot/revolt_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
profiles_sample_rate=1.0,
)

prefix = "gc!"
prefix = config.COMMAND_PREFIX


def get_endpoint(server: revolt.Server):
Expand Down

0 comments on commit f580968

Please sign in to comment.