complete
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
import os
|
import os
|
||||||
BOT_TOKEN=os.environ['BOT_TOKEN']
|
BOT_TOKEN=os.environ['BOT_TOKEN']
|
||||||
USE_INVITE_SERVER=os.environ['USE_INVITE']=='true'
|
USE_INVITE=os.environ['USE_INVITE']=='true'
|
||||||
PUNISH_ROLES=(1279588925257683014,)
|
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_URL=os.environ['REDIS_URL']
|
||||||
REDIS_USER=os.environ['REDIS_USER']
|
REDIS_USER=os.environ['REDIS_USER']
|
||||||
REDIS_PSW=os.environ['REDIS_PSW']
|
REDIS_PSW=os.environ['REDIS_PSW']
|
||||||
@@ -30,8 +30,8 @@ async def on_member_join(member: discord.Member):
|
|||||||
user = aura.get(str(member.id))
|
user = aura.get(str(member.id))
|
||||||
if not user:
|
if not user:
|
||||||
user = aura.add(str(member.id))
|
user = aura.add(str(member.id))
|
||||||
if USE_INVITE_SERVER:
|
if USE_INVITE:
|
||||||
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**'))
|
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')
|
@tree.command(name='aura', description='Check the amount of aura a member has')
|
||||||
async def get_aura(interaction: discord.Interaction, member: discord.Member = None):
|
async def get_aura(interaction: discord.Interaction, member: discord.Member = None):
|
||||||
|
|||||||
Reference in New Issue
Block a user