zLeki / Liquid-Gen

Discord Account generator for multiple servers. Used as a storage bot that can store keys and stores them locally with sql. Mass servers
MIT License
6 stars 3 forks source link

If someone enters /gen [NOT A STRING/INT] or [INCORRECT INPUT] program crashes and adds what they typed to DB #7

Closed XMVZ closed 1 year ago

XMVZ commented 1 year ago

really need a fix for this.. otherwise the bot is AMAZING THANK YOU.

XMVZ commented 1 year ago

hmmm tried starting from scratch and now it's even worse... console prints ADDED COMMAND 3 times for each command and seems to have an open action as well..

past that, if i try to gen (even having set premium to 1 manually in DB) when i try to gen i get the "this server has too many members blah blah" error...

please help. so close.

XMVZ commented 1 year ago

now im here...

2022/12/26 02:11:21 [DG0] wsapi.go:585:onEvent() error unmarshalling PRESENCE_UPDATE event, json: cannot unmarshal number into Go struct field PresenceUpdate.activities of type string 2022/12/26 02:11:35 [DG0] wsapi.go:585:onEvent() error unmarshalling PRESENCE_UPDATE event, json: cannot unmarshal number into Go struct field PresenceUpdate.activities of type string 2022/12/26 02:11:44 [DG0] wsapi.go:585:onEvent() error unmarshalling PRESENCE_UPDATE event, json: cannot unmarshal number into Go struct field PresenceUpdate.activities of type string 2022/12/26 02:11:47 [DG0] wsapi.go:585:onEvent() error unmarshalling PRESENCE_UPDATE event, json: cannot unmarshal number into Go struct field PresenceUpdate.activities of type string 2022/12/26 02:11:48 [DG0] wsapi.go:585:onEvent() error unmarshalling PRESENCE_UPDATE event, json: cannot unmarshal number into Go struct field PresenceUpdate.activities of type string 2022/12/26 02:12:04 0 [config valNA valEU crunchyroll spotify spotifyPREM] 1118 821 juansuyama@hotmail.com:Juansuyama1 2022/12/26 02:12:53 [DG0] wsapi.go:585:onEvent() error unmarshalling PRESENCE_UPDATE event, json: cannot unmarshal number into Go struct field PresenceUpdate.activities of type string 2022/12/26 02:13:09 [DG0] wsapi.go:585:onEvent() error unmarshalling PRESENCE_UPDATE event, json: cannot unmarshal number into Go struct field PresenceUpdate.activities of type string

bot works for a bit then completely breaks down

zLeki commented 1 year ago

Sorry, i'm here i'll take a look and get back to you asap

zLeki commented 1 year ago

Could you elaborate? It shouldn't be possible for the user to enter anything but a string since the queries are required

XMVZ commented 1 year ago

I ended up creating my own gen in python as I unfortunately became too frustrated with the bot crashing with almost any query. admittedly filed this issue late at night and am retroactively realizing it makes no sense as currently read.

error was essentially -

i wish i had saved the errors or logs, but unfortunately i don't have those files any more! wish i could be of more assistance and best of luck fixing it :)