final
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
BOT_TOKEN=os.environ['BOT_TOKEN']
|
BOT_TOKEN=os.environ['BOT_TOKEN']
|
||||||
USE_INVITE=True
|
|
||||||
INVITE=os.environ['INVITE']
|
INVITE=os.environ['INVITE']
|
||||||
if not INVITE.endswith('/'):INVITE+='/'
|
if not INVITE.endswith('/'):INVITE+='/'
|
||||||
PUNISH_ROLES=[x.strip() for x in os.environ['PUNISH_ROLES'].split(',')]
|
PUNISH_ROLES=[x.strip() for x in os.environ['PUNISH_ROLES'].split(',')]
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ 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:
|
member.send(embed=discord.Embed(color=member.color, title='✨ Welcome to ORUS! ✨', description=f'**Aura: {user.balance}\nInvite URL: {INVITE+str(member.id)}\nShare this Invite URL to get 120+ aura per join!**'))
|
||||||
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