Skip to content

Instantly share code, notes, and snippets.

@mydicebot
Last active April 2, 2020 07:33
Show Gist options
  • Select an option

  • Save mydicebot/84855b6c6b019f6f629f39b6fb383681 to your computer and use it in GitHub Desktop.

Select an option

Save mydicebot/84855b6c6b019f6f629f39b6fb383681 to your computer and use it in GitHub Desktop.
bot doc internal variables functions #MyDiceBot#
--[[ Internal Variables ]]
--[[ FORMAT TEMPLATE
Variable:
Type:
Permission:
Purpose:
]]
--[[ Internal Functions ]]
--[[ FORMAT TEMPLATE
Function:
Purpose:
]]
------------------------------------
--[[
Variable: basebet
Type: double
Permission: Read Write
Purpose: Must set for the first bet.
]]
basebet = 1.0
--[[
Variable: nextbet
Type: double
Permission: Read Write
Purpose: The amount to bet in the next bet.
]]
nextbet = 1.0
--[[
Variable: chance
Type: double
Permission: Read Write
Purpose: The chance to win when betting.
]]
chance = 49.5
--[[
Variable: chance
Type: bool
Permission: Read Write
Purpose: Whether to bet high/over (true) or low/under(false).
]]
bethigh = false
--[[
Function: dobet()
Purpose: The loop of bets
]]
function dobet()
--[[
Variable: previousbet
Type: double
Permission: Read Only
Purpose: Shows the amount of the previous bet.
]]
print('previousbet: ' .. previousbet)
--[[
Variable: win
Type: bool
Permission: Read Only
Purpose: Indicates whether the last bet you made was a winning bet (true) or a losing bet (false).
]]
print(win)
--[[
Variable: currentprofit
Type: double
Permission: Read Only
Purpose: Shows the profit for the last bet made..
]]
print('currentprofit: ' .. currentprofit)
--[[
Variable: currentroll
Type: double
Permission: Read Only
Purpose: Show the roll number for the last bet made.
]]
print('currentroll: ' .. currentroll)
--[[
Variable: balance
Type: double
Permission: Read Only
Purpose: Lists your balance at the site you're logged in to.
]]
print('balance: ' .. balance)
--[[
Variable: wins
Type: int
Permission: Read Only
Purpose: Shows the number of wins for the current session.
]]
print('wins: ' .. wins)
--[[
Variable: losses
Type: int
Permission: Read Only
Purpose: Shows the number of losses for the current session.
]]
print('losses: ' .. losses)
--[[
Variable: currentstreak
Type: int
Permission: Read Only
Purpose: Shows the current winning or losing streak.
]]
print('currentstreak: ' .. currentstreak)
--[[
Variable: profit
Type: double
Permission: Read Only
Purpose: Shows your session profit.
]]
print('profit: ' .. profit)
--[[
Variable: bets
Type: int
Permission: Read Only
Purpose: Shows the number of bets for the current session.
]]
print('bets: ' .. bets)
if bets >= 10 then
--[[
Function: stop()
Purpose: Stop the bet.
]]
stop()
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment