Made it so if theres no reason for the salt it doesnt say 'for: no reason was provided'

This commit is contained in:
Lilac-Rose
2025-10-05 06:46:56 +02:00
parent 2c0f448074
commit 8c5dc9fec4
4 changed files with 4 additions and 4 deletions

6
bot.py
View File

@@ -59,10 +59,10 @@ async def on_ready():
# Load all cogs
await load_cogs("commands")
await load_cogs("wordbomb")
# await load_cogs("wordbomb")
await load_cogs("moderation")
await load_cogs("xp")
await load_cogs("sparkle") # <-- Load sparkle cogs
await load_cogs("sparkle")
# Sync slash commands after loading cogs
try:
@@ -88,7 +88,7 @@ async def reload(ctx):
await load_cogs("commands")
await load_cogs("moderation")
await load_cogs("xp")
await load_cogs("sparkle") # Reload sparkle cogs
await load_cogs("sparkle")
try:
synced = await bot.tree.sync()

View File

@@ -27,7 +27,7 @@ class SaltCommand(ModerationBase):
return
guild_targets[member.id] = reason
await ctx.send(f"{member.mention} got salt thrown at them for: {reason or 'no reason provided'}")
await ctx.send(f"{member.mention} got salt thrown at them" + (f" for: {reason}" if reason else ""))
@commands.Cog.listener()
async def on_message(self, message):

Binary file not shown.