Skip to content

Commit

Permalink
[•] - Cleaning Code
Browse files Browse the repository at this point in the history
  • Loading branch information
AyiinXd committed Sep 29, 2023
1 parent 25bfa78 commit 3589e56
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions AyiinXd/ayiin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@

async def autopilot():
LOGS.info("TUNGGU SEBENTAR. SEDANG MEMBUAT GROUP LOG USERBOT UNTUK ANDA")
if var.BOTLOG_CHATID and str(var.BOTLOG_CHATID).startswith("-100"):
return
y = [] # To Refresh private ids
async for x in Ayiin.iter_dialogs():
y.append(x.id)
if var.BOTLOG_CHATID:
return
try:
r = await Ayiin(
CreateChannelRequest(
Expand Down Expand Up @@ -90,8 +83,6 @@ async def autopilot():


async def autobot():
if var.BOT_TOKEN:
return
try:
await Ayiin.start()
await asyncio.sleep(15)
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class Config(object):
BITLY_TOKEN = getenv("BITLY_TOKEN", None)

# Bot version
BOT_VER = getenv("BOT_VER", "3.6.9")
BOT_VER = getenv("BOT_VER", "4.0.0")

# Default .alive logo
ALIVE_LOGO = (getenv("ALIVE_LOGO")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ setuptools
spamwatch
speedtest-cli
telegraph
telethon
telethon==1.24.0
telethon-session-sqlalchemy
telethon-tgcrypto
urbandict
Expand Down

0 comments on commit 3589e56

Please sign in to comment.