Skip to content

Commit

Permalink
Update auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidrezafarzin authored Sep 13, 2022
1 parent d16eb63 commit 26fd3f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import asyncio
import time
import sqlite3

import sys
token = input("Enter a token: ")

intents = disnake.Intents.all()
Expand All @@ -27,4 +27,10 @@ async def ping(ctx):
pass

bot.load_extension("cogs.check")
bot.run(token, reconnect=True)

try :
bot.run(token, reconnect=True)
except disnake.errors.LoginFailure:
print("login faild please check to correct token(app will be terminated )")
time.sleep(3)
sys.exit()

0 comments on commit 26fd3f1

Please sign in to comment.