diff --git a/CHANGELOG.md b/CHANGELOG.md index 77324a2..c514307 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 1.0.9 - You can now configure trial account duration +- Reformatted link command # 1.0.8 diff --git a/README.md b/README.md index 61235f1..d73c58d 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Fill out values in the .env and you're good to go! ***🛠️ Admin Commands*** -- `!link` @user - Manually link accounts +- `!link` @user - Manually link accounts - `!unlink` @user - Manually unlink accounts - `!validusers` - Show number of valid and invalid accounts - `!cleanup` - Remove Jellyfin accounts from users without roles diff --git a/app.py b/app.py index 838e0b6..c6a8357 100644 --- a/app.py +++ b/app.py @@ -1597,9 +1597,9 @@ async def storage(ctx): @bot.command() -async def link(ctx, jellyfin_username: str = None, user: discord.User = None, js_id: str = None): +async def link(ctx, user: discord.User = None, jellyfin_username: str = None, js_id: str = None): log_event(f"link invoked by {ctx.author}") - usage_args = ["", "<@user>"] + usage_args = ["<@user>", ""] if JELLYSEERR_ENABLED: usage_args.append("") if jellyfin_username is None or user is None or (JELLYSEERR_ENABLED and js_id is None): @@ -1617,7 +1617,7 @@ async def link(ctx, jellyfin_username: str = None, user: discord.User = None, js return add_account(user.id, jellyfin_username, jf_id, js_id) - await ctx.send(f"✅ Linked Jellyfin account **{jellyfin_username}** to {user.mention}.") + await ctx.send(f"✅ Linked {user.mention} to Jellyfin account **{jellyfin_username}**.") @bot.command() @@ -1805,9 +1805,9 @@ async def help_command(ctx): # --- Admin Commands --- if is_admin: # Admin Jellyfin commands - link_command = f"`{PREFIX}link @user` - Manually link accounts" + link_command = f"`{PREFIX}link @user ` - Manually link accounts" if JELLYSEERR_ENABLED: - link_command = f"`{PREFIX}link @user ` - Link accounts with Jellyseerr" + link_command = f"`{PREFIX}link @user ` - Link accounts with Jellyseerr" admin_cmds = [ link_command,