From 2624f1ec0631361759b16bee3bf441b9e31ae23e Mon Sep 17 00:00:00 2001 From: Pengu Date: Sat, 6 Sep 2025 22:11:42 -0500 Subject: [PATCH] 1.0.4 --- .env | 2 +- CHANGELOG.md | 1 + app.py | 8 +++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 9f07a91..97e9c06 100644 --- a/.env +++ b/.env @@ -1,7 +1,7 @@ # Discord DISCORD_TOKEN=your_discord_bot_token PREFIX=! -GUILD_ID=123456789012345678 +GUILD_ID=123456789012345678,123456789012345678 ADMIN_ROLE_IDS=111111111111111111,222222222222222222 REQUIRED_ROLE_IDS=333333333333333333,444444444444444444 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4296918..3ab850e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 1.0.4 - Multi-Guild support (As long as a user has a required role or admin role in one server, they are able to use the bot and Jellyfin) +- Fixed link command instructions not updating based on Jellyseerr availability # 1.0.3 diff --git a/app.py b/app.py index afcd81c..5780bef 100644 --- a/app.py +++ b/app.py @@ -913,6 +913,11 @@ async def help_command(ctx): # Admin commands if is_admin: + # Dynamic link command line + link_command = f"`{PREFIX}link @user` - Manually link accounts" + if JELLYSEERR_ENABLED: + link_command = f"`{PREFIX}link @user ` - Manually link accounts with Jellyseerr" + embed.add_field(name="Admin Commands", value=( f"`{PREFIX}cleanup` - Remove Jellyfin accounts from users without roles\n" f"`{PREFIX}listvalidusers` - Show number of valid and invalid accounts\n" @@ -920,9 +925,10 @@ async def help_command(ctx): f"`{PREFIX}searchaccount ` - Find linked Discord user\n" f"`{PREFIX}searchdiscord @user` - Find linked Jellyfin account\n" f"`{PREFIX}scanlibraries` - Scan all Jellyfin libraries\n" - f"`{PREFIX}link @user` - Manually link accounts\n" + f"{link_command}\n" f"`{PREFIX}unlink @user` - Manually unlink accounts\n" ), inline=False) + embed.add_field(name="Admin Bot Commands", value=( f"`{PREFIX}setprefix` - Change the bot's command prefix\n" f"`{PREFIX}updates` - Manually check for bot updates\n"