Skip to content

Commit

Permalink
upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
kaif-00z committed Sep 10, 2023
1 parent b09e82c commit 221fb3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def loader(mem: dict, db: Redis, logger):

async def notify_about_me():
try:
if "--no-notify" in sys.argv:
return await pyro.start()
btn = [
[
Button.url("Developer 👨‍💻", url="t.me/kaif_00z"),
Expand All @@ -135,7 +137,7 @@ async def notify_about_me():
]
]
await bot.send_message(
Var.MAIN_CHANNEL, "`Hi, Anime Lovers, How Are You!`", buttons=btn
Var.MAIN_CHANNEL, "`Hi, Anime Lovers, How Are You?`", buttons=btn
)
except BaseException:
pass
Expand Down
2 changes: 1 addition & 1 deletion bot/dts.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ async def shu_msg():
await reporter.report(str(err), error=True, log=True)
POST_TRACKER.clear()
if Var.RESTART_EVERDAY:
os.execl(sys.executable, sys.executable, "-m", "bot", "--samedb")
os.execl(sys.executable, sys.executable, "-m", "bot", "--samedb", "--no-notify")

0 comments on commit 221fb3d

Please sign in to comment.