在您告诉我之前,是的,我知道自助机器人可以使您被禁。我的selfbot用于与我和其他三个人一起在服务器中工作。我在这里没什么可做的。
我试图以自助机器人身份登录我的用户帐户。当我这样做时,将花费5到10分钟的时间加载块(因为我在许多大型服务器中):
在这段时间之后,它将引发以下错误:
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
第96行如下:
bot.run(token, bot=False)
没有什么比这更寻常的了,只是作为自助机器人登录的标准方式。在代码的早期,它还声明不缓存脱机成员(以便处理更少的块):
bot = commands.Bot(command_prefix=prefix, self_bot=True, fetch_offline_members=False)
这是完整的开放源代码:https://github.com/Supersebi3/Selfbot/blob/master/main.py
如何在不离开很多服务器的情况下解决此错误?