[Python] Im tryna make a self but it's not working [closed]

Discussão em 'Python' iniciado por Stack, Setembro 15, 2024.

  1. Stack

    Stack Membro Participativo

    client.run(os.getenv("TOKEN"))


    File "/home/runner/Discord-Online-247/venv/lib/python3.8/site-packages/discord/client.py", line 938, in run

    asyncio.run(runner())


    File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/runners.py", line 44, in run

    return loop.run_until_complete(main)


    File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete

    return future.result()


    File "/home/runner/Discord-Online-247/venv/lib/python3.8/site-packages/discord/client.py", line 927, in runner

    await self.start(token, reconnect=reconnect)


    File "/home/runner/Discord-Online-247/venv/lib/python3.8/site-packages/discord/client.py", line 857, in start

    await self.login(token)


    File "/home/runner/Discord-Online-247/venv/lib/python3.8/site-packages/discord/client.py", line 698, in login

    data = await state.http.static_login(token.strip())


    File "/home/runner/Discord-Online-247/venv/lib/python3.8/site-packages/discord/http.py", line 994, in static_login

    data = await self.get_me()


    File "/home/runner/Discord-Online-247/venv/lib/python3.8/site-packages/discord/http.py", line 772, in request

    raise HTTPException(response, data)


    discord.errors.HTTPException: 429 Too Many Requests (error code: 0): selfbots are against Discord's terms of service

    172.31.196.61 - - [15/Sep/2024 06:28:51] "GET / HTTP/1.1" 200 -`

    This is the error I'm getting:

    import discord

    import os

    from keep_alive import keep_alive

    from discord.ext import commands



    client = commands.Bot(command_prefix=':', self_bot=True)



    @client.event

    async def on_ready():

    await client.change_presence(status=discord.Status.online)

    os.system('clear')

    print(f'Logged in as {client.user} (ID: {client.user.id})')



    keep_alive()

    client.run(os.getenv("TOKEN"
    ))


    And this my code

    (I am fully aware it is against the tos, but I'm curious)

    ......................

    Continue reading...

Compartilhe esta Página