MyDiceBot v2.0.0 is out - supporting YoloDice with BTC/LTC/ETH/DOGE NOW!

in #utopian-io6 years ago (edited)

Selection_003.png

MyDiceBot v2.0.0 is out - supporting YoloDice with BTC/LTC/ETH/DOGE NOW!

Download

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. JavaScript and Python are coming soon.

Commit

Code Changes

  • src/api/models/yolo.js
  • src/public/js/YoloDice/info.js
  • src/views/login.pug
  • src/views/info.pug

New Features

  • YoloDice Login
  • YoloDice Currencies: BTC/ETH/BCH/DOGE
  • YoloDice Manual Bet
  • YoloDice Auto Bet
  • YoloDice Script Bet - Compatible with the variables and functions of Seuntjie DiceBot's Lua script

Internal Variables

  • Single Bet Info
VariableTypePermissionPurpose
basebetdoubleRead WriteShows the amount of the first bet. Only set for first bet.
previousbetdoubleRead OnlyShows the amount of the previous bet. Only set after first bet.
nextbetdoubleRead WriteThe amount to bet in the next bet. You need to assign a value to this variable to change the amount bet. Defaults to previousbet after first bet. Needs to be set before betting can start.
chancedoubleRead WriteThe chance to win when betting. Defaults to value set in advanced settings if not set. Need to set this value to change the chance to win/payout when betting.
bethighboolRead WriteWhether to bet high/over (true) or low/under(false). Defaults to true (bet high/bet over)
winboolRead OnlyIndicates whether the last bet you made was a winning bet (true) or a losing bet (false).
currentprofitdoubleRead OnlyShows the profit for the last bet made. This is not the amount returned. betting 1 unit at x2 payout, when winning, currentprofit will show 0.00000001 (returned =0.00000002), when losing, profit will show -0.00000001
  • Current Session Info
VariableTypePermissionPurpose
balancedoubleRead OnlyLists your balance at the site you're logged in to.
betsintRead OnlyShows the number of bets for the current session.
winsintRead OnlyShows the number of wins for the current session.
lossesintRead OnlyShows the number of losses for the current session.
profitdoubleRead OnlyShows your session profit. Session is defined as the time since opening the current instance of bot or the last time you reset your stats in the bot.
currentstreakdoubleRead OnlyShows the current winning or losing streak. When positive (>0), it's a winning streak. When negative (<0) it's a losing streak. Can never be 0. Only set after first bet.

Internal Functions

FunctionPurpose
dobet()The loop of bets
stop()Stop the bet

Sample Code

  • Strategy: Basic Martingale
chance = 49.5
multiplier = 2
basebet = 0.00000010

function dobet()
    if profit >= 0.1 then
        stop()
    end
    
    if win then
        nextbet = basebet
    else
        nextbet = previousbet * multiplier
    end
end

Report Issue

License

  • GPL-3.0
Sort:  

Thank you for your contribution.

  1. You are committing everything in a single commit - and the commit message is not descriptive.
  2. I would suggest creating a new branch, split your changes into several small commits and create a Pull Request, merge it to your master branch. As this will make your changes trackable, and easy to identify in the future.
  3. I haven't found any useful comments in your commit. Comments are useful in the future even for your self to review your code.
  4. There are some duplication code such as checkParams.
  5. Each function should only does one single - single responsibility. For example, in your checkParams , you also console.log - which is not very good practice.
  6. isError could be just one line of code - you could define as a function prototype.
  7. In setDatatable you are directly setting HTML with CSS - which is mixing the presentation with logics - that is not recommended.. Try to use some JS frameworks e.g. Vue, React or, Angular.

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]

Thank you for your review, @justyy! 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) :

You published more than 10 posts. Your next target is to reach 20 posts.
You received more than 50 upvotes. Your next target is to reach 100 upvotes.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do not miss the last post from @steemitboard:

Be ready for the next contest!

Support SteemitBoard's project! Vote for its witness and get one more award!

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

Congratulations @mydicebot! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:

SteemFest³ - SteemitBoard Contest Teaser
The new Steemfest³ Award is ready!

Support SteemitBoard's project! Vote for its witness and get one more award!

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!

Coin Marketplace

STEEM 0.14
TRX 0.12
JST 0.025
BTC 52740.91
ETH 2362.72
USDT 1.00
SBD 2.09