dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
651 stars 154 forks source link

Exception has occurred: ValueError too many values to unpack (expected 7) #568

Closed engiw closed 10 months ago

engiw commented 10 months ago

Summary

selfcord.py was working fine until a few days ago, now getting this error.

Reproduction Steps

Create simple selfbot as shown below. Does not successfully launch.

Code

import selfcord
token = ""

class MyClient(selfcord.Client):
    async def on_ready(self):
        print('Logged on as', self.user)

client = MyClient()
client.run(token)

Expected Results

Client successfully goes online and prints "Logged on as..."

Actual Results

client.run() fails to execute.

Traceback (most recent call last): File "D:\jabwi\Documents\bots\import selfcord.py", line 9, in client.run(token) File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\site-packages\selfcord\client.py", line 1024, in run asyncio.run(runner()) File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run return runner.run(main) File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete return future.result() File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\site-packages\selfcord\client.py", line 1013, in runner await self.start(token, reconnect=reconnect) File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\site-packages\selfcord\client.py", line 944, in start await self.connect(reconnect=reconnect) File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\site-packages\selfcord\client.py", line 825, in connect await self.ws.poll_event() File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\site-packages\selfcord\gateway.py", line 651, in poll_event await self.received_message(msg.data) File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\site-packages\selfcord\gateway.py", line 601, in received_message func(data) File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\site-packages\selfcord\state.py", line 1080, in parse_ready self.experiments = {exp[0]: UserExperiment(state=self, data=exp) for exp in data.get('experiments', [])} File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\site-packages\selfcord\state.py", line 1080, in self.experiments = {exp[0]: UserExperiment(state=self, data=exp) for exp in data.get('experiments', [])} File "C:\Users\jabwi\AppData\Local\Programs\Python\Python311\Lib\site-packages\selfcord\experiment.py", line 741, in init (hash, revision, bucket, override, population, hash_result, aa_mode) = data ValueError: too many values to unpack (expected 7)

System Information

Checklist

Additional Information

No response