Skip to content

Commit 26fd3f1

Browse files
Update auth.py
1 parent d16eb63 commit 26fd3f1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

auth.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import asyncio
44
import time
55
import sqlite3
6-
6+
import sys
77
token = input("Enter a token: ")
88

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

2929
bot.load_extension("cogs.check")
30-
bot.run(token, reconnect=True)
30+
31+
try :
32+
bot.run(token, reconnect=True)
33+
except disnake.errors.LoginFailure:
34+
print("login faild please check to correct token(app will be terminated )")
35+
time.sleep(3)
36+
sys.exit()

0 commit comments

Comments
 (0)