@bot.event
async def on_ready():
cursor.execute("""CREATE TABLE user (
timed VARCHAR,
timec VARCHAR,
times VARCHAR,
timee VARCHAR
)""")
connection.commit()
@bot.command()
async def test(ctx, amount=5):
for c in range(amount):
channel = bot.get_channel(тут указан ид)
await channel.send("Тест")
await asyncio.sleep(random.uniform(3620,4500))