fix for whitelist .L....
This commit is contained in:
1 parent
c22dade3d5
commit
d93d56e99f
1 file changed
+1
-1
@@ -11,7 +11,7 @@ from core.whitelist import Whitelist
|
|||||||
dotenv.load_dotenv()
|
dotenv.load_dotenv()
|
||||||
env=dotenv.find_dotenv()
|
env=dotenv.find_dotenv()
|
||||||
token=dotenv.get_key(env,"TOKEN");log=dotenv.get_key(env,"LOG")
|
token=dotenv.get_key(env,"TOKEN");log=dotenv.get_key(env,"LOG")
|
||||||
bot=commands.Bot(command_prefix=";",self_bot=True,help_command=None)
|
bot=commands.Bot(command_prefix=";",user_bot=True,help_command=None)
|
||||||
def banned(e):
|
def banned(e):
|
||||||
return isinstance(e,discord.LoginFailure) or (isinstance(e,discord.ConnectionClosed) and e.code==4004) or (isinstance(e,discord.HTTPException) and e.status in(401,403))
|
return isinstance(e,discord.LoginFailure) or (isinstance(e,discord.ConnectionClosed) and e.code==4004) or (isinstance(e,discord.HTTPException) and e.status in(401,403))
|
||||||
async def guard():
|
async def guard():
|
||||||
|
|||||||
Reference in new issue
Block a user