Vedza / NitroSniperGo

Discord Nitro sniper and Giveaway joiner in Go (Faster than Python and Javascript) (UPDATED Free 24/7 w/ Heroku)
GNU General Public License v2.0
415 stars 756 forks source link

Error unmarshalling READY event #6

Closed goldentg closed 4 years ago

goldentg commented 4 years ago

when launched, it gives this error then doesn't do anything when nitro codes or giveaways are sent

image

Vedza commented 4 years ago

Are you sure it doesn't do anything when nitro codes or giveaways are sent? This error comes from discordgo library but it seems that everything works fine for most people when they get this error.

goldentg commented 4 years ago

nope. sends the second it starts and doesnt gather potential giveaway codes after. at least with my experiance

SloppyPuppy commented 4 years ago

same issue here, have yet to see if it actually works with codes, but the python version reported claimed codes yet it didn't seem to work, so it is a possibility with something on my end.

Vedza commented 4 years ago

I think you're talking about a different issue than the one on this issue but I add a case "cannot check validity". Sometimes it happens when the gift is a game (check in library), sometimes it just doesn't work, even on discord app.

SloppyPuppy commented 4 years ago

Well it's printing the same thing ([DG0] wsapi.go:574:onEvent() error unmarshalling READY event, json: cannot unmarshal number into Go struct field ReadState.read_state.last_message_id of type string), but right now I am just unsure if It hasn't snipped any codes yet or if the program is just not working for me.

SloppyPuppy commented 4 years ago

Btw really appreciate your work and the fact that you interact with community 👍

Vedza commented 4 years ago

No problem ! You can test it by sending a gift link in any channel (here is one if you need discord.com/gifts/duHW5XPgE8AYsvWD2qCZ4EcH). If it prints something then it's working

Vedza commented 4 years ago

Btw I'm sorry for anyone who has this unmarshalling error but I can't find out as the error comes from a dependence and I can't reproduce it myself to debug it. Someone told me that he didn't get the error after removing the "Discord Sniper" print, it would be nice if someone here can test that and tell me if it works.

PeterStrick commented 4 years ago

Btw I'm sorry for anyone who has this unmarshalling error but I can't find out as the error comes from a dependence and I can't reproduce it myself to debug it. Someone told me that he didn't get the error after removing the "Discord Sniper" print, it would be nice if someone here can test that and tell me if it works.

I tested it by making two builds.

Build 1: Replace the Discord Nitro Sniper print with test Build 2: Removed the Sniper print entirely

The error still exists in both builds.

Vedza commented 4 years ago

Ok thanks, that's what I thought. It would have been really weird if it was the solution

PeterStrick commented 4 years ago

Found an issue on the discordgo repo with the same problem https://github.com/bwmarrin/discordgo/issues/773

Seems like the error message is normal?

Vedza commented 4 years ago

Yeah I saw that but it seems like it make the bot doesn't work for some people

This error comes from discordgo library but it seems that everything works fine for most people when they get this error.

nope. sends the second it starts and doesnt gather potential giveaway codes after. at least with my experiance

But maybe they just didn't understand that it was working because they didn't get 10 months of nitro in 10 sec. If nobody can't prove me that it doesn't snipe nitro with this error I'll just close the issue then

SloppyPuppy commented 4 years ago

I think the bot works fine, it's just for some reason slow for me because i've been running the program for about 24 hours now and I have yet to have a successful snipe, its always either claimed or sometimes it says it claimed it himself but it doesn't claim it. I've checked the gifts section with no luck. Do you have any tips on how to optimize the snipe time? (running the bot on 83 servers)

Vedza commented 4 years ago

You just have to wait. I run it on my vps and sometimes it takes a day, sometimes a week. The only thing I can recommend is to stop it a few days or weeks when you get 4/5 months, and join all kind of server with more or less people in it. Did you get [+] Code applied ? You should have this only if you got Nitro.

SloppyPuppy commented 4 years ago

Yes I got the [+] Code applied twice but it didn't actually apply.