MyDiceBot
- https://mydicebot.github.io
- MyDiceBot is a cross-platform automated dicing bot for cryptocurrency dice-sites.
- Similar to the bot pioneer Seuntjies DiceBot.
- Multiple platforms are supported, including Windows, Mac, Linux, and Web.
- Multiple programming languages are supported such as Lua.
Supporting Dice Sites (alphabet sequence)
Download
Gist of Sample Code 'High Chance Regression/Martingale Variation'
- https://gist.github.com/mydicebot/741035c7ed474037cc4dff26a300aef1
- Original author is grendel25, but the code is lacking of many important features
- We improve the code by adding
- customized sleep functions to replace native lua Sleep()
- add stopping conditions such as profit, wins, bets, currentstreak, etc.
- add more description of the code for users' easy customization.
Screenshot
--[[
This script doubles the bet after a loss but starts at a very high chance of success: 95%.
After each bet the chance reduces enough to bring equilibrium to profit but stops reducing chance at 49.5%.
First loss goes from 95% to 67%, then 57% and then gradually lower and closer to 49.5%.
It basically buys you a few more higher probability roles before the same old 49.5% martingale.
author: grendel25
link: https://bot.seuntjie.com/scripts.aspx?id=38
]]
-- You could just use Sleep(n) to use LUAs built in sleep function.
-- But this one will have the same result without killing your CPU.
function sleep(n)
t0 = os.clock()
while os.clock() - t0 <= n do end
end
-- init
chance = 95
basebet = 0.00000100
bethigh = true
lossstreakcount = 0 -- sample: user-defined lossstreakcount.
nextbet = basebet
-- do bet and let's rock
function dobet()
-- some sites limit bet latency due to the low bet amount.
-- enable it and avoid to be banned, just in case.
-- eg. 2 means sleeping 2 seconds
-- sleep(2)
-- adjust the stopping condition of session profit.
if profit >= 0.00001000 then
stop()
end
-- adjust the stopping condition of wins.
if wins >= 1000 then
stop()
end
-- adjust the stopping condition of bets.
if (bets >= 2000) then
stop()
end
-- adjust the stopping condition of loss streak.
-- eg. -10 means 10 loss streak
if (currentstreak <= -10) then
stop()
end
-- if win, reset bet to base amount.
if (win) then
chance = 95
nextbet = basebet
lossstreakcount = 0
end
-- if loss,
-- first loss goes from 95% to 67%,
-- then 57% and then gradually lower and closer to 49.5%.
if (!win) then
lossstreakcount += 1
if (lossstreakcount > 1) then
nextbet = previousbet*2
chance = (1/(((nextbet+(nextbet-basebet))/nextbet)))*100
if chance < 49.5 then chance = 49.5 end
bethigh = !bethigh
print ("LOSE")
print(nextbet)
print(chance)
print(profit)
print(bets)
else
nextbet = previousbet*2
chance = (1/(((basebet+nextbet))/nextbet))*100
if chance < 49.5 then chance = 49.5 end
bethigh = !bethigh
print ("LOSE")
print(nextbet)
print(chance)
print(profit)
print(bets)
end
end
end
Thanks for the contribution, @mydicebot. To me it seems like a very simple script and I would like to see more significant features added instead.
In the future I would also highly recommend adding the code in a commit instead of linking to a Gist. Maybe having a dropdown on the website where people can select this script would be better instead.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Good idea, @amosbastian, dropdown list of these scripts is a good feature we should have.
Thank you for your review, @amosbastian! Keep up the good work!
Congratulations @mydicebot! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word
STOP
Do not miss the last post from @steemitboard:
Hi @mydicebot!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server
Hey, @mydicebot!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!