Bir diğeri ise şöyle:
My code (see below) was running fine, but then this error popped up and doesn't go away: "http.py", line 293, in static_login data = await self.request(Route('GET', '/users/@me') Fi...
stackoverflow.com
Bunu denedim. Sanırım repl.it ile alakalı.
[CODE lang="python" title="Main.py" highlight="43-48"]import discord
from discord.ext import commands
import random
import os
from webserver import keep_alive
client = discord.Client()
keep_alive()
Bot = commands.Bot(command_prefix='!m ')
selam = ("slm","selam")
@Bot.event
async def on_ready():
print("Bot çalışıyor." + str(Bot.user))
#------------------------------------------------------------------------
@Bot.command(name="musty")
async def musty(msg):
await msg.send('Merhaba ben MusTy')
@Bot.command(name="temizle")
async def temizle(ctx,amount=15):
await ctx.channel.purge(limit=amount)
@commands.has_permissions(kick_members=True)
@Bot.command()
async def kick(ctx, user: discord.Member, *, reason="Sebep belirtilmedi"):
await user.kick(reason=reason)
kick = discord.Embed(color = 0xFF0000, title=f"{user.name} kullanıcısı rokentlendi:rocket: !", description=f"Sebep: {reason}\nAtan: {ctx.author.mention}")
await ctx.message.delete()
await ctx.channel.send(embed=kick)
await user.send(embed=kick)
try:
Bot.run(os.getenv('OTYxMjUzMjQ5MTkxNjYxNjA4.Yk2S2Q.OIQ8Plm5RuFWPGGSlmzz8PvhkCM'))
except discord.errors.HTTPException:
print("\n\n\nBLOCKED BY RATE LIMITS\nRESTARTING NOW\n\n\n")
system("python restarter.py")
system('kill 1')[/CODE]
[CODE lang="python" title="restarter"]from time import sleep
from os import system
sleep(7)
system("python main.py")[/CODE]
[CODE title="HATA"]WARNING: This is a development server. Do not use it in a production deployment.
* Running on http://127.0.0.1:8080
* Running on http://172.18.1.84:8080 (Press CTRL+C to quit)
Traceback (most recent call last):
File "main.py", line 100, in <module>
Bot.run(os.getenv('TOKEN'))
File "/home/runner/AcidicFoolhardyDictionary/venv/lib/python3.8/site-packages/discord/client.py", line 723, in run
return future.result()[/CODE]