Hi seuntjie,
Quick question:
Is there a way to get server - client seed pair before placing a bet? (I mean server seed hash of-course)
I want to be doubly sure that provably fair remains provably fair and site knows that client has recorded server seed hash to verify each and every bet (small/big/win/lose all). If I do not know hash before bet, then site **may** cheat and no one will ever know about it.
recently, I read this thread:
https://bitcointalksearch.org/topic/how-999dicecom-is-stealing-your-coins-and-exactly-why-you-wont-believe-me-948965 and it prompted this question:
It is from 2015 and things might have got changed by now, but it has a point and site *may* cheat if you do not see server hash before placing a bet, right?
One technical question:
Can I add few more fields of my own in sqlite database dicebot.db ? if yes, how? How can I do CRUD operations in LUA script?
(I came to know about LUA only after using your BOT.. but I can do it if someone shows me how.. )
thanks
The bot does this mostly. At 999dice, the bot doesn't place the bet unless is has the server seed hash and the bot sets a new client seed randomly for each bet (completely independent from the site, after the server seed hash has been received)
I remember reading that post and agreed with some and disagreed with other parts of it, but I can't really remember everything that was said, but it was a long time ago and a few things have changed since that post.
999dice sends the server seed hash of the next bet with the result of a bet. So you always have the hash of the next bet before you place it. As long as you choose a new client seed for every bet, there's not much the site can do to cheat you. The bot does log every server seed and server seed hash for every bet and in the bet history form, the bot verifies the bets if the server seed is available. The verifier checks only if the roll numbers are the same, it doesn't check the seed hashes. From all of the bets I've made at 999dice, i've only had 1 roll that didn't verify. I won the roll, and it was probably my fault that it didn't verify because i was debugging and looking at variables run time and probably accidentally changed my client seed after the bet was placed.
I'll be honest, I don't know if you can add data to the DB from LUA. I assume there is a sqlite library for LUA as someone implemented some machine learning functions in lua for dicebot and it was reading from the DB. I haven't tried it personally.
If you don't mind me asking, what operations do you want to perform on the DB?
I think the easiest way to add fields to the DB would be to
edit this file, specifically the CheckDBS and AddBet functions, in the source and recompile the bot.
seutjie, is there possible for bot to rerun itself
or command to check bot running or not every 30s, if not run it
in case : server getting disconnected
thank you
Dear sir,
I want to add my feature which wait after some hours and restart. But I don't see method wait or sleep or something like that in code tab. So can you add function sleep in code tabe in next version. Thanks you so much
Regards,
gnolmon
this one work sleep(milliseconds)
int value
thanks seutjie for it
The bot already retries the failed bet after 30 seconds and again every 2 minutes in case the bot is able to reconnect on its own. If it cannot reconnect on its own, you will need to manually log in again which reset the betting system
wow amazing, i just shock when try about it,
btw seutjie
is there any possibility to change retries wait value ?
thank you very much for this awesome bot
At this time, not unless you change the hardcoded values and recompile the bot