modified: bot.py

This commit is contained in:
SimolZimol
2025-08-19 19:24:10 +02:00
parent 098b4f13f6
commit 05897dfcd9

51
bot.py
View File

@@ -1833,7 +1833,8 @@ async def help(ctx):
"`/points` - Check your current points balance\n"
"`/level [user]` - View level and XP information\n"
"`/leaderboard` - View the server XP leaderboard\n"
"`/permissionlevel` - Check your permission level"
"`/permissionlevel` - Check your permission level\n"
"`/version` - Show bot version information"
),
inline=False
)
@@ -1845,7 +1846,8 @@ async def help(ctx):
"`/askmultus <prompt>` - Ask Multus AI a question (costs 5 points)\n"
"`/vision <image_url>` - Analyze an image with AI\n"
"`/startlivechat` - Start live chat mode in channel\n"
"`/stoplivechat` - Stop live chat mode in channel"
"`/stoplivechat` - Stop live chat mode in channel\n"
"`/summarize <number>` - Summarize last N messages in channel"
),
inline=False
)
@@ -1861,13 +1863,26 @@ async def help(ctx):
inline=False
)
# Giveaway Commands (if user has permission)
# Check if user has moderation permissions to show additional commands
user_data = load_user_data_sync(ctx.author.id, ctx.guild.id)
if user_data["permission"] >= 5:
embed.add_field(
name="🎁 Giveaway Commands",
name="🎁 Giveaway & Management Commands",
value=(
"`/startgiveaway <platform> <prize> <winners> <title> <subtitle> <duration>` - Create a giveaway"
"`/startgiveaway <platform> <prize> <winners> <title> <subtitle> <duration>` - Create a giveaway\n"
"`/processes [action] [type]` - View or manage active processes\n"
"`/join` - Join server (if bot has invite permissions)\n"
"`/leave` - Leave server (staff only)"
),
inline=False
)
# Owner-specific commands preview
if user_data["permission"] >= 8:
embed.add_field(
name="🛠️ Advanced Commands Available",
value=(
"Additional admin commands available. Use `/modhelp` for details."
),
inline=False
)
@@ -1898,7 +1913,11 @@ async def modhelp(ctx):
"`/warn <user> [reason]` - Warn a user\n"
"`/mute <user> <duration> [reason]` - Mute a user temporarily\n"
"`/unmute <user>` - Manually unmute a user\n"
"`/modstats [user]` - View moderation statistics"
"`/modstats [user]` - View moderation statistics\n"
"`/processes <action> [type]` - Manage active processes\n"
"`/startgiveaway` - Create server giveaways\n"
"`/join` - Make bot join a server\n"
"`/leave` - Make bot leave a server"
),
inline=False
)
@@ -1911,7 +1930,9 @@ async def modhelp(ctx):
"`/modconfig [setting] [value]` - Configure server moderation settings\n"
"`/addpoints <user> <amount>` - Add points to a user\n"
"`/resetpoints <user>` - Reset a user's points to 0\n"
"`/setlocalpermission <level>` - Set your local permission level"
"`/setlocalpermission <level>` - Set your local permission level\n"
"`/addbackgrounddata <data>` - Add data to AI background knowledge\n"
"`/toggle_feature <feature> <state>` - Enable/disable bot features"
),
inline=False
)
@@ -1922,7 +1943,9 @@ async def modhelp(ctx):
name="🔧 Owner Commands (Level 10)",
value=(
"`/shutdown_` - Shutdown the bot\n"
"`/owner_command` - Sync slash commands"
"`/owner_command` - Sync slash commands\n"
"`/addbackgrounddata` - Modify AI training data\n"
"`/toggle_feature` - Control bot features globally"
),
inline=False
)
@@ -1951,6 +1974,18 @@ async def modhelp(ctx):
inline=False
)
# Process Management
embed.add_field(
name="🔄 Process Management",
value=(
"`/processes list` - List all active processes\n"
"`/processes list mute` - List only mute processes\n"
"`/processes cleanup` - Clean up expired processes\n"
"`/processes stats` - Show process statistics"
),
inline=False
)
embed.set_footer(text=f"Your permission level: {user_data['permission']} | Use /help for user commands")
await ctx.send(embed=embed)