vivinano / MudaeAutoBot

python bot that uses strictly the **Discord API** to Roll,Claim,and Kakera Snipe in Mudae. 5/10/21 project converted over to discum library
Apache License 2.0
143 stars 47 forks source link

Key error: user #215

Closed VSeaV closed 1 year ago

VSeaV commented 1 year ago

Tried that temp fix. Didn't work

Exception ignored in thread started by: <bound method GatewayServer._response_loop of <discum.gateway.gateway.GatewayServer object at 0x000001D94F0B2770>> Traceback (most recent call last): File "C:\Users\Borut\AppData\Roaming\Python\Python310\site-packages\discum\gateway\gateway.py", line 299, in _response_loop func(resp) File "C:\Users\Borut\Desktop\MudaeAutoBot-4\MudaeAutoBot.py", line 686, in on_message user = bot.gateway.session.user File "C:\Users\Borut\AppData\Roaming\Python\Python310\site-packages\discum\gateway\session.py", line 42, in user return self.settings_ready['user'] KeyError: 'user' 2022-10-27 16:55:17,458:Could not find settings for 1026999547769131108, please trigger the '$settings' command in the server and run the bot again.

Also doesn't create a txt file when I do $settings

VSeaV commented 1 year ago

Thought it was fixed but it wasnt.

louis50171 commented 1 year ago

did you try to tape $setting then launch the bot (order matter here)

VSeaV commented 1 year ago

Yes, It didn't make a text file though so I dont really know what to do from here. I also tried that channeltypes fix and it didn't seem to do anything.

kyeong6250 commented 1 year ago

Mine also did not make a text file. Tried multiple times, should I just make it manually? If so, what should i name the txt and a template would help as well

vivinano commented 1 year ago

Mine also did not make a text file. Tried multiple times, should I just make it manually? If so, what should i name the txt and a template would help as well

There a default set up in the code itself that you can copy and edit and it should be named the channelid

VSeaV commented 1 year ago

Mine also did not make a text file. Tried multiple times, should I just make it manually? If so, what should i name the txt and a template would help as well

There a default set up in the code itself that you can copy and edit and it should be named the channelid

Well even if thats fixed im still left with the key error, which was not fixed using that temp fix in the other thread.

vivinano commented 1 year ago

Mine also did not make a text file. Tried multiple times, should I just make it manually? If so, what should i name the txt and a template would help as well

There a default set up in the code itself that you can copy and edit and it should be named the channelid

Well even if thats fixed im still left with the key error, which was not fixed using that temp fix in the other thread.

This issue falls outside the scope of an issue I can fix as it doesn't pertain to my code but within the disum library

I personally have tried but am unable to recreate the key user error myself so in that regards can't fix something I can't recreate

VSeaV commented 1 year ago

Mine also did not make a text file. Tried multiple times, should I just make it manually? If so, what should i name the txt and a template would help as well

There a default set up in the code itself that you can copy and edit and it should be named the channelid

Well even if thats fixed im still left with the key error, which was not fixed using that temp fix in the other thread.

This issue falls outside the scope of an issue I can fix as it doesn't pertain to my code but within the disum library

I personally have tried but am unable to recreate the key user error myself so in that regards can't fix something I can't recreate

yeah Im wondering if i installed discum wrong and python and stuff because im new to this whole thing so its very possible

pingu6 commented 1 year ago

Mine also did not make a text file. Tried multiple times, should I just make it manually? If so, what should i name the txt and a template would help as well

There a default set up in the code itself that you can copy and edit and it should be named the channelid

Well even if thats fixed im still left with the key error, which was not fixed using that temp fix in the other thread.

This issue falls outside the scope of an issue I can fix as it doesn't pertain to my code but within the disum library I personally have tried but am unable to recreate the key user error myself so in that regards can't fix something I can't recreate

yeah Im wondering if i installed discum wrong and python and stuff because im new to this whole thing so its very possible

i have the same Issues but when i use simple script that only send message it works anyway i will try reinstall python and discum image

VSeaV commented 1 year ago

Mine also did not make a text file. Tried multiple times, should I just make it manually? If so, what should i name the txt and a template would help as well

There a default set up in the code itself that you can copy and edit and it should be named the channelid

Well even if thats fixed im still left with the key error, which was not fixed using that temp fix in the other thread.

This issue falls outside the scope of an issue I can fix as it doesn't pertain to my code but within the disum library

I personally have tried but am unable to recreate the key user error myself so in that regards can't fix something I can't recreate

IM starting to think that maybe I got the slash Id and guild channel slash id's wrong. Only when i enter my Token do i get this error, when I leave it at 1 nothing happens.

pingu6 commented 1 year ago

Mine also did not make a text file. Tried multiple times, should I just make it manually? If so, what should i name the txt and a template would help as well

There a default set up in the code itself that you can copy and edit and it should be named the channelid

Well even if thats fixed im still left with the key error, which was not fixed using that temp fix in the other thread.

This issue falls outside the scope of an issue I can fix as it doesn't pertain to my code but within the disum library I personally have tried but am unable to recreate the key user error myself so in that regards can't fix something I can't recreate

yeah Im wondering if i installed discum wrong and python and stuff because im new to this whole thing so its very possible

i have the same Issues but when i use simple script that only send message it works anyway i will try reinstall python and discum image

it did not work even after reinstall python and discum but the script works fine when i use replit image

update: so i was testing with 3~5 acc and now it's working (idk why)

VSeaV commented 1 year ago

Cool. Can you tell me how to get this? I'll try it with this and see if it works.

kyeong6250 commented 1 year ago

Made my own txt for the $settings and I still got the user error. Anyone found a fix?

vivinano commented 1 year ago

Well since there now 2 issues open for the same issue you can check the other one also and see if there is a fix

Sent from my iPhone

On Oct 31, 2022, at 12:25 AM, kyeong6250 @.***> wrote:

 Made my own txt for the $settings and I still got the user error. Anyone found a fix?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

pingu6 commented 1 year ago

Made my own txt for the $settings and I still got the user error. Anyone found a fix?

https://github.com/vivinano/MudaeAutoBot/issues/213#issuecomment-1297398307

VSeaV commented 1 year ago

ever figure out what exactly fixed it?

Yuriyalloween commented 1 year ago

\src\discum\discum\gateway\gateway.py Changing line 88 from "capabilities": 1021, to "capabilities": 509, fixed it for me. Dunno how good/bad of a solution that is.

SerisLyy commented 1 year ago

\src\discum\discum\gateway\gateway.py Changing line 88 from "capabilities": 1021, to "capabilities": 509, fixed it for me. Dunno how good/bad of a solution that is.

Thanks bro, I had tried all possible fixes and nothing worked, yours solved my problem.

VSeaV commented 1 year ago

\src\discum\discum\gateway\gateway.py Changing line 88 from "capabilities": 1021, to "capabilities": 509, fixed it for me. Dunno how good/bad of a solution that is.

Thank you bro this fixed it I love you forever <3