Trial accounts no longer require the Jellyfin role
This commit is contained in:
11
app.py
11
app.py
@@ -1156,16 +1156,7 @@ async def trialaccount(ctx, username: str = None, password: str = None):
|
|||||||
await ctx.send(command_usage(f"{PREFIX}trialaccount", ["<username>", "<password>"]))
|
await ctx.send(command_usage(f"{PREFIX}trialaccount", ["<username>", "<password>"]))
|
||||||
return
|
return
|
||||||
|
|
||||||
member = None
|
# No role required for trial accounts — allow any DM user when enabled.
|
||||||
for gid in GUILD_IDS:
|
|
||||||
guild = bot.get_guild(gid)
|
|
||||||
if guild:
|
|
||||||
member = guild.get_member(ctx.author.id)
|
|
||||||
if member and has_required_role(member):
|
|
||||||
break
|
|
||||||
|
|
||||||
if not member or not has_required_role(member):
|
|
||||||
await ctx.send(f"❌ {ctx.author.mention}, you don’t have the required role.")
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check if user already has a normal Jellyfin account
|
# Check if user already has a normal Jellyfin account
|
||||||
|
|||||||
Reference in New Issue
Block a user