MemoryError with Discord selfbot during 'bot.run'

陌路散爱 提交于 2019-12-02 08:57:30

问题


Before you tell me, yes I am aware that selfbots can get you banned. My selfbot is for work purposes in a server with me and three others. I'm doing nothing shady or weird over here.

I'm using the following selfbot code: https://github.com/Supersebi3/Selfbot

Upon logging in, being that I'm in about 50 servers, I experience the following:

This carries on for several minutes, until I eventually get a MemoryError:

  File "main.py", line 96, in <module>
    bot.run(token, bot=False)
  File "D:\Python\Python36-32\lib\site-packages\discord\client.py", line 519, in run
    self.loop.run_until_complete(self.start(*args, **kwargs))
  File "D:\Python\Python36-32\lib\asyncio\base_events.py", line 468, in run_until_complete
    return future.result()
  File "D:\Python\Python36-32\lib\site-packages\discord\client.py", line 491, in start
    yield from self.connect()
  File "D:\Python\Python36-32\lib\site-packages\discord\client.py", line 448, in connect
    yield from self.ws.poll_event()
  File "D:\Python\Python36-32\lib\site-packages\discord\gateway.py", line 431, in poll_event
    yield from self.received_message(msg)
  File "D:\Python\Python36-32\lib\site-packages\discord\gateway.py", line 327, in received_message
    log.debug('WebSocket Event: {}'.format(msg))
MemoryError

Can anyone explain to why this is happening and how I can fix it? Is there any way I can skip the chunk processing for the members of every server my selfbot account is in?

来源:https://stackoverflow.com/questions/53180281/memoryerror-with-discord-selfbot-during-bot-run

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!