keep getting the error in the title, would appreciate any help. As I said in the title, it says blocked for more than 10 seconds, all the way to 240 picture of error ANY help would welcomed, as i have no idea what is going wrong. On my pc this never happens, but when i host it on replit is when the problems started.
import os,requests,time,base64,threading,discord,random,datetime,psutil
from discord.ext import commands
from re import search
from time import sleep
from discord import embeds
from datetime import datetime
from concurrent.futures import ThreadPoolExecutor
from requests import post, Session
from random import choice
#การตั้งค่า
PREFIX = 's!' #คำนำหน้าตอนใช้คำสั่ง
TOKEN = 'removed due to security reasons' #token ของบอท
LIMIT = 1000 #จำนวนสูงสุดที่ใส่ได้ต่อการยิง 1 ครั้ง
blacklist = [
"removed due to security reasons",
"removed due to security reasons"
]
intents = discord.Intents.all()
intents.members = True
bot = commands.Bot(command_prefix=PREFIX, intents=intents)
bot.remove_command("help")
def randomString(N):
return ''.join(choice(ascii_uppercase + digits) for _ in range(N))
threading = ThreadPoolExecutor(max_workers=int(100000000))
useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36 Edg/95.0.1020.40"
header = {"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36 Edg/95.0.1020.38"}
print('''
╔════════════════════════════════════════════╗
║ .______ ______ .___________. ║
║ | _ \ / __ \ | | ║
║ | |_) | | | | | `---| |----` ║
║ | _ < | | | | | | ║
║ | |_) | | `--' | | | ║
║ |______/ \______/ |__| ║
╚════════════════════════════════════════════╝
''')
@bot.event
async def on_command_error(ctx, error):
if isinstance(error, commands.CommandOnCooldown):
await ctx.send(f"`cooldown {round(error.retry_after, 2)} seconds left`")
@bot.event
async def on_ready():
print(gratient.red(f"login as {bot.user}"))
system('title ' + (f"{bot.user}"))
def randomString(N):
return ''.join(choice(ascii_uppercase + digits) for _ in range(N))
threading = ThreadPoolExecutor(max_workers=int(100000000))
useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36 Edg/95.0.1020.40"