CSGOWinBig icon indicating copy to clipboard operation
CSGOWinBig copied to clipboard

[Solved] Bot crashes after selecting winner

Open keinervonuns opened this issue 9 years ago • 6 comments

Hi After the bot picks a winner due to potOver (timer is not working at all) and listing the won items (green at the top of the picture) i get the error as shown in the picture. The pot is also cleared, but there is neither a winner notification nor a trade offer with the winnings. Any ideas of a solution?

Thanks in advance

website: http://sexyskins.keiner.bplaced.net/

bot_cmd

keinervonuns avatar Feb 07 '16 21:02 keinervonuns

I think your deposit.php is returning some nonsense that the bot can't interpret as JSON.

andrewda avatar Feb 10 '16 16:02 andrewda

i checked the echo of my deposit php and it gave me: One of the required fields was not sent correctly or was left blank, in deposit.php i checked the variables that cause the error and all three returned "null" return I think they sould not be null?

keinervonuns avatar Feb 10 '16 19:02 keinervonuns

Copy-and-paste this as your deposit.php and nothing should have to change. https://github.com/ztizzlegaming/CSGOWinBig/blob/master/src/php/deposit.php

The issue is that your bot is receiving something before the JSON (</span>).

andrewda avatar Feb 10 '16 21:02 andrewda

before the i get this warnings

is it normal thgat it shows &amp instead of the apikey?

UPDATE: Hard-Coding the api key and password solved the json problem. now i only have to fix the timer because it wants to stop an not-running timer (Object reference not set to an object instance)

keinervonuns avatar Feb 10 '16 22:02 keinervonuns

Ok, so sounds like your passwords.txt file isn't being found or doesn't have an API key in it. You should open another issue for your second problem because it's not related.

andrewda avatar Feb 10 '16 23:02 andrewda

i remembered that i replaced the getsteamapikey() in the default.php withe the different keys needed for the files ($dbSteamAPIKey, $chatAPIKey) but i forgot about the one in deposit.php

keinervonuns avatar Feb 10 '16 23:02 keinervonuns