diff --git a/config.py b/config.py index a8ef81e..43d1dbc 100644 --- a/config.py +++ b/config.py @@ -1,7 +1,9 @@ import os BOT_TOKEN=os.environ['BOT_TOKEN'] -USE_INVITE_SERVER=os.environ['USE_INVITE']=='true' -PUNISH_ROLES=(1279588925257683014,) +USE_INVITE=os.environ['USE_INVITE']=='true' +INVITE=os.environ['INVITE'] +if not INVITE.endswith('/'):INVITE+='/' +PUNISH_ROLES=[x.strip() for x in os.environ['PUNISH_ROLES'].split(',')] REDIS_URL=os.environ['REDIS_URL'] REDIS_USER=os.environ['REDIS_USER'] REDIS_PSW=os.environ['REDIS_PSW'] \ No newline at end of file diff --git a/main.py b/main.py index 5692dba..35f3b85 100644 --- a/main.py +++ b/main.py @@ -30,8 +30,8 @@ async def on_member_join(member: discord.Member): user = aura.get(str(member.id)) if not user: user = aura.add(str(member.id)) - if USE_INVITE_SERVER: - member.send(embed=discord.Embed(color=member.color, title='✨ Welcome to ORUS! ✨', description=f'**Aura: {user.balance}\nInvite URL: {INVITE_SERVER_URL+member.id}\nShare this Invite URL to get 120+ aura per person**')) + if USE_INVITE: + member.send(embed=discord.Embed(color=member.color, title='✨ Welcome to ORUS! ✨', description=f'**Aura: {user.balance}\nInvite URL: {INVITE+member.id}\nShare this Invite URL to get 120+ aura per person**')) @tree.command(name='aura', description='Check the amount of aura a member has') async def get_aura(interaction: discord.Interaction, member: discord.Member = None):