From e8bd402126202d309e659c7b457ea41de7ad454a Mon Sep 17 00:00:00 2001 From: Leo dev Date: Tue, 3 Sep 2024 15:02:52 +0200 Subject: [PATCH] small changes --- main.py | 3 ++- run.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index ef725b1..3afd283 100644 --- a/main.py +++ b/main.py @@ -31,7 +31,8 @@ async def on_member_join(member: discord.Member): user = aura.get(str(member.id)) if not user: user = aura.add(str(member.id)) - member.send(embed=discord.Embed(color=member.color, title='✨ Welcome to ORUS! ✨', description=f'**Aura: {user.balance}**')) + 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**')) @tree.command(name='aura', description='Check the amount of aura a member has') async def get_aura(interaction: discord.Interaction, member: discord.Member = None): diff --git a/run.py b/run.py index 7b79ec5..186d323 100644 --- a/run.py +++ b/run.py @@ -1,3 +1,4 @@ +from config import * from subprocess import run from threading import Thread @@ -6,8 +7,8 @@ t2 = Thread(target=run, args=(['./.venv/bin/python3', 'main.py'],)) t1.daemon = True t2.daemon = True t1.start() -t2.start() +if USE_INVITE_SERVER:t2.start() while 1: if input() == 'q': t1.join(0) - t2.join(0) \ No newline at end of file + if USE_INVITE_SERVER:t2.join(0) \ No newline at end of file