We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d16eb63 commit 26fd3f1Copy full SHA for 26fd3f1
auth.py
@@ -3,7 +3,7 @@
3
import asyncio
4
import time
5
import sqlite3
6
-
+import sys
7
token = input("Enter a token: ")
8
9
intents = disnake.Intents.all()
@@ -27,4 +27,10 @@ async def ping(ctx):
27
pass
28
29
bot.load_extension("cogs.check")
30
-bot.run(token, reconnect=True)
+
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