This commit is contained in:
2025-09-06 22:11:42 -05:00
parent bfb16c503a
commit 2624f1ec06
3 changed files with 9 additions and 2 deletions

2
.env
View File

@@ -1,7 +1,7 @@
# Discord # Discord
DISCORD_TOKEN=your_discord_bot_token DISCORD_TOKEN=your_discord_bot_token
PREFIX=! PREFIX=!
GUILD_ID=123456789012345678 GUILD_ID=123456789012345678,123456789012345678
ADMIN_ROLE_IDS=111111111111111111,222222222222222222 ADMIN_ROLE_IDS=111111111111111111,222222222222222222
REQUIRED_ROLE_IDS=333333333333333333,444444444444444444 REQUIRED_ROLE_IDS=333333333333333333,444444444444444444

View File

@@ -1,6 +1,7 @@
# 1.0.4 # 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) - 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 # 1.0.3

8
app.py
View File

@@ -913,6 +913,11 @@ async def help_command(ctx):
# Admin commands # Admin commands
if is_admin: if is_admin:
# Dynamic link command line
link_command = f"`{PREFIX}link <jellyfin_username> @user` - Manually link accounts"
if JELLYSEERR_ENABLED:
link_command = f"`{PREFIX}link <jellyfin_username> @user <Jellyseerr ID>` - Manually link accounts with Jellyseerr"
embed.add_field(name="Admin Commands", value=( embed.add_field(name="Admin Commands", value=(
f"`{PREFIX}cleanup` - Remove Jellyfin accounts from users without roles\n" f"`{PREFIX}cleanup` - Remove Jellyfin accounts from users without roles\n"
f"`{PREFIX}listvalidusers` - Show number of valid and invalid accounts\n" f"`{PREFIX}listvalidusers` - Show number of valid and invalid accounts\n"
@@ -920,9 +925,10 @@ async def help_command(ctx):
f"`{PREFIX}searchaccount <jellyfin_username>` - Find linked Discord user\n" f"`{PREFIX}searchaccount <jellyfin_username>` - Find linked Discord user\n"
f"`{PREFIX}searchdiscord @user` - Find linked Jellyfin account\n" f"`{PREFIX}searchdiscord @user` - Find linked Jellyfin account\n"
f"`{PREFIX}scanlibraries` - Scan all Jellyfin libraries\n" f"`{PREFIX}scanlibraries` - Scan all Jellyfin libraries\n"
f"`{PREFIX}link <jellyfin_username> @user` - Manually link accounts\n" f"{link_command}\n"
f"`{PREFIX}unlink @user` - Manually unlink accounts\n" f"`{PREFIX}unlink @user` - Manually unlink accounts\n"
), inline=False) ), inline=False)
embed.add_field(name="Admin Bot Commands", value=( embed.add_field(name="Admin Bot Commands", value=(
f"`{PREFIX}setprefix` - Change the bot's command prefix\n" f"`{PREFIX}setprefix` - Change the bot's command prefix\n"
f"`{PREFIX}updates` - Manually check for bot updates\n" f"`{PREFIX}updates` - Manually check for bot updates\n"