Skip to content

Commit d91c262

Browse files
author
bot
committed
auto resetseed & console ui update
1 parent f3e639d commit d91c262

File tree

23 files changed

+645
-252
lines changed

23 files changed

+645
-252
lines changed

README.md

Lines changed: 52 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* [https://mydicebot.com](https://mydicebot.com)
1212
* [MyDiceBot](https://mydicebot.com) is World #1 Cross-Platform Dicing Bot.
1313
* Multiple platforms are supported, including __Windows, Mac, Linux, Web, Terminal/Console, Android__ and __Raspberry Pi__.
14-
* Multiple blockchains are supported, including __STEEM__.
14+
* Multiple blockchains are supported.
1515
* Multiple programming languages are supported such as __Lua, Javascript__ and __Python__.
1616
* [Open Source](https://github.com/mydicebot/mydicebot.github.io) and __Free Forever__.
1717

@@ -63,7 +63,7 @@
6363
* [999Dice](https://www.999dice.com/?224280708)
6464
* [999Doge](https://www.999doge.com/?224280708)
6565
* [Bitsler](https://www.bitsler.com/?ref=mydicebot)
66-
* [Crypto-Games](https://www.crypto-games.net?i=CpQP3V8Up2)
66+
* [Crypto.Games](https://www.crypto.games?i=CpQP3V8Up2)
6767
* [DuckDice](https://duckdice.com/ab61534783)
6868
* [Freebitco.in](https://freebitco.in/?r=16392656)
6969
* [PrimeDice](https://primedice.com/?c=mydicebot)
@@ -97,16 +97,17 @@
9797
* [Zcash Click](https://t.me/Zcash_click_bot?start=3mgl)
9898

9999
# Faucet
100+
* [CoinPot Wallet](https://coinpot.co/)
101+
* [FaucetPay Wallet](https://faucetpay.io/?r=201981)
102+
* [Faucet Collector](https://faucetcollector.com/?ref=4789455)
100103
* [Moon Bitcoin](http://moonbit.co.in/?ref=6e3fc20d04f3)
101104
* [Moon Dogecoin](http://moondoge.co.in/?ref=7b7eac714ebc)
102105
* [Moon Litecoin](http://moonliteco.in/?ref=1183cf6a9534)
103106
* [Moon Dash](http://moondash.co.in/?ref=4A054C71CB12)
104107
* [Moon Cash](http://moonbitcoin.cash/?ref=6F08451C9CF9)
105108
* [Bit Fun](http://bitfun.co/?ref=950389505790)
106109
* [Bonus Bitcoin](http://bonusbitcoin.co/?ref=0B26E1CAF795)
107-
* [Faucet Collector](https://faucetcollector.com/?ref=4789455)
108110
* [AutoFaucet](https://autofaucet.org/r/mydicebot)
109-
* [FaucetPay](https://faucetpay.io/?r=201981)
110111

111112
# Mining
112113
* [CryptoTab](https://cryptotabbrowser.com/4760331)
@@ -168,6 +169,7 @@ bash start.sh
168169
* Manual bet
169170
* Auto bet
170171
* Script bet (__compatible with Seuntjies DiceBot scripts__)
172+
* Script gist
171173
* Chat room [MyDiceBot](https://discord.gg/S6W5ec9) on [Discord](https://discord.gg/S6W5ec9)
172174

173175
# Manual Bet
@@ -185,6 +187,7 @@ bash start.sh
185187
* JavaScript programming language
186188
* Python programming language
187189
* __Compatible with the variables and functions of Seuntjie DiceBot's Lua script__
190+
* Import script from gist (Github) easily
188191

189192
![](screenshot/mydicebot-script-bet.png)
190193

@@ -235,38 +238,57 @@ bash start.sh
235238
* Strategy: Basic Martingale
236239
* Using Lua
237240
```lua
238-
chance = 49.5
239-
multiplier = 2
240-
basebet = 0.00000010
241-
bethigh = false
242-
243-
function dobet()
244-
if profit >= 0.1 then
245-
stop()
246-
end
247-
248-
if win then
249-
nextbet = basebet
250-
else
251-
nextbet = previousbet * multiplier
241+
chance = 49.5
242+
multiplier = 2
243+
basebet = 0.00000010
244+
bethigh = false
245+
246+
function dobet()
247+
if profit >= 0.1 then
248+
stop()
249+
end
250+
251+
if win then
252+
nextbet = basebet
253+
else
254+
nextbet = previousbet * multiplier
255+
end
252256
end
253-
end
254257
```
255258
* Using Javascript
256259
```javascript
257-
chance = 49.5;
258-
multiplier = 2;
259-
baseBet = 0.00000001;
260-
betHigh = false;
261-
262-
function dobet() {
263-
if (win) {
264-
nextBet = basebet;
265-
} else {
266-
nextBet = previousbet * multiplier;
260+
chance = 49.5;
261+
multiplier = 2;
262+
baseBet = 0.00000001;
263+
betHigh = false;
264+
265+
function dobet() {
266+
if (win) {
267+
nextBet = basebet;
268+
} else {
269+
nextBet = previousbet * multiplier;
270+
}
267271
}
268-
}
269272
```
273+
* Using Python
274+
```python
275+
chance = 49.5
276+
multiplier = 2
277+
basebet = 0.00000001
278+
bethigh = False
279+
nextbet = basebet
280+
281+
def dobet(event):
282+
if win:
283+
nextbet = basebet
284+
else:
285+
nextbet = previousbet * multiplier
286+
```
287+
288+
## Script Gist
289+
* https://gist.github.com/mydicebot
290+
* Import script from gist (github) in MyDiceBot app directly
291+
* Vote/Comment/Fork scripts on gist (github)
270292

271293
# Report Issue
272294
* [https://github.com/mydicebot/mydicebot.github.io/issues](https://github.com/mydicebot/mydicebot.github.io/issues)

src/console.js

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -146,44 +146,42 @@ var contrib = require('blessed-contrib');
146146
var screen = blessed.screen();
147147
var grid = new contrib.grid({rows: 4, cols: 4, screen: screen});
148148

149-
//var table1 = grid.set(0, 0, 0.6, 1.6, contrib.table,
150-
var table1 = grid.set(0, 0, 0.6, 1.6, contrib.table,
149+
var table1 = grid.set(0, 0, 1.4, 1.0, contrib.table,
151150
{ keys: true
152151
, fg: 'green'
153152
, label: 'Total Status'
154153
, columnSpacing: 1
155-
, columnWidth: [12, 12, 12, 6, 6, 6]});
156-
var table2 = grid.set(0, 1.6, 0.6, 1.6, contrib.table,
154+
, columnWidth: [10, 12]});
155+
var table2 = grid.set(0, 1.0, 1.4, 1.0, contrib.table,
157156
{ keys: true
158157
, fg: 'green'
159-
, label: 'Current Status'
158+
, label: 'Current Status 1'
160159
, columnSpacing: 1
161-
, columnWidth: [12, 12, 12, 6, 6, 6]});
162-
//var table2 = grid.set(0.6, 0, 0.6, 2.8, contrib.table,
163-
var table3 = grid.set(0.6, 0, 0.6, 3.2, contrib.table,
160+
, columnWidth: [10, 12]});
161+
var table3 = grid.set(0, 2.0, 1.4, 1.2, contrib.table,
164162
{ keys: true
165163
, fg: 'green'
166-
, label: 'Bet Current Status'
164+
, label: 'Current Status 2'
167165
, columnSpacing: 1
168-
, columnWidth: [19, 16, 16, 13, 10, 13, 14]});
169-
var table4 = grid.set(0, 3.2, 1.2, 0.8, contrib.table,
166+
, columnWidth: [18, 12]});
167+
var table4 = grid.set(0, 3.2, 1.4, 0.8, contrib.table,
170168
{ keys: true
171169
, fg: 'green'
172170
, label: 'Info'
173171
, columnSpacing: 1
174-
, columnWidth: [19, 16, 16, 13, 10, 13, 14]});
175-
var datalog = grid.set(1.2, 0, 1.2, 4, contrib.log,
172+
, columnWidth: [20]});
173+
var datalog = grid.set(1.4, 0, 1.2, 4, contrib.log,
176174
{ fg: "green"
177175
, selectedFg: "green"
178176
, label: 'Bet Info'
179177
, border: {type: "line", fg: "cyan"}});
180-
var logs = grid.set(2.4, 0, 1.6, 4, contrib.log,
178+
var logs = grid.set(2.6, 0, 1.4, 4, contrib.log,
181179
{ fg: "green"
182180
, selectedFg: "green"
183181
, label: 'Server Log'});
184182

185183
table4.setData(
186-
{ headers: ['info']
184+
{ headers: ['Info']
187185
, data:
188186
[['Start(Enter)'],
189187
['Stop(S)'],['Quit(Ctrl-C)']] });

src/package.json.console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "mydicebot-console-200425",
2+
"name": "mydicebot-console-200503",
33
"version": "1.0.0",
44
"description": "MyDiceBot - Bet more, earn more!",
55
"homepage": "https://mydicebot.com",

src/public/css/contrast.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3358,7 +3358,7 @@ legend.webix_required:after,
33583358
}
33593359
.webix_tab_filler {
33603360
display: table-cell;
3361-
background: transparent;
3361+
background: #393939;
33623362
font-size: 1px;
33633363
border-bottom: 1px solid #818181;
33643364
-moz-box-sizing: border-box;
@@ -4017,8 +4017,8 @@ legend.webix_forminput_label_top {
40174017
font-family: "Webix Awesome Icons";
40184018
font-size: 50px;
40194019
position: absolute;
4020-
left: 50%;
4021-
top: 50%;
4020+
left: 90%;
4021+
top: 20%;
40224022
margin-left: -25px;
40234023
margin-top: -25px;
40244024
display: inline-block;
@@ -5291,7 +5291,7 @@ div.webix_inp_static,
52915291
border: 1px solid #fff;
52925292
}
52935293
.webix_control {
5294-
background: transparent;
5294+
background: #393939;
52955295
}
52965296
/* .webix_layout_line > .webix_control, .webix_layout_clean > .webix_control{
52975297
background: @backColor;

src/public/css/material.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5049,8 +5049,8 @@ legend.webix_forminput_label_top {
50495049
font-family: "Webix Material Icons";
50505050
font-size: 50px;
50515051
position: absolute;
5052-
left: 50%;
5053-
top: 50%;
5052+
left: 90%;
5053+
top: 20%;
50545054
margin-left: -25px;
50555055
margin-top: -25px;
50565056
display: inline-block;

src/public/js/999Dice/info.js

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,38 @@ function consoleStats(userinfo, cv){
163163
let info = JSON.stringify(userinfo.Balances[cv]);
164164
console.log(info.replace(/\"/g,""));
165165
wagered = (Math.abs(userinfo.Balances[cv].TotalPayIn)/100000000).toFixed(8);
166-
table1.setData(
167-
{ headers: ['balance','profit', 'wagered','wins','bets','losses']
168-
, data:
169-
[[parseFloat(userinfo.Balances[cv].Balance/100000000).toFixed(8), ((userinfo.Balances[cv].TotalPayIn+userinfo.Balances[cv].TotalPayOut)/100000000).toFixed(8), (Math.abs(userinfo.Balances[cv].TotalPayIn)/100000000).toFixed(8), userinfo.Balances[cv].TotalWins, userinfo.Balances[cv].TotalBets, (userinfo.Balances[cv].TotalBets-userinfo.Balances[cv].TotalWins)]] });
170-
table2.setData(
171-
{ headers: ['balance','profit', 'wagered','wins','bets','losses']
172-
, data:
173-
[[parseFloat(userinfo.CurrentBalances[cv].Balance/100000000).toFixed(8), ((userinfo.CurrentBalances[cv].TotalPayIn+userinfo.CurrentBalances[cv].TotalPayOut)/100000000).toFixed(8), (Math.abs(userinfo.CurrentBalances[cv].TotalPayIn)/100000000).toFixed(8), userinfo.CurrentBalances[cv].TotalWins, userinfo.CurrentBalances[cv].TotalBets, (userinfo.CurrentBalances[cv].TotalBets-userinfo.CurrentBalances[cv].TotalWins)]] });
174-
table3.setData(
175-
{ headers: ['maxwinstreakamount','maxstreakamount','minstreakamount','maxbetamount','curstreak','maxwinstreak','maxlossstreak']
176-
, data:
177-
[[maxwinstreakamount, maxstreakamount.toFixed(8), minstreakamount.toFixed(8), maxbetamount, currentstreak, maxwinstreak, maxlossstreak]] });
166+
table1.setData({
167+
headers: ['Info'],
168+
data: [
169+
['BALANCE', parseFloat(userinfo.Balances[cv].Balance/100000000).toFixed(8)],
170+
['WIN', userinfo.Balances[cv].TotalWins],
171+
['LOSS', (userinfo.Balances[cv].TotalBets-userinfo.Balances[cv].TotalWins)],
172+
['BET', userinfo.Balances[cv].TotalBets],
173+
['PROFIT', ((userinfo.Balances[cv].TotalPayIn+userinfo.Balances[cv].TotalPayOut)/100000000).toFixed(8)],
174+
['WAGERED', (Math.abs(userinfo.Balances[cv].TotalPayIn)/100000000).toFixed(8)]
175+
]
176+
});
177+
table2.setData({
178+
headers: ['Info'],
179+
data: [
180+
['BALANCE', parseFloat(userinfo.CurrentBalances[cv].Balance/100000000).toFixed(8)],
181+
['WIN', userinfo.CurrentBalances[cv].TotalWins],
182+
['LOSS', (userinfo.CurrentBalances[cv].TotalBets-userinfo.CurrentBalances[cv].TotalWins)],
183+
['BET', userinfo.CurrentBalances[cv].TotalBets],
184+
['PROFIT', ((userinfo.CurrentBalances[cv].TotalPayIn+userinfo.CurrentBalances[cv].TotalPayOut)/100000000).toFixed(8)],
185+
['WAGERED', (Math.abs(userinfo.CurrentBalances[cv].TotalPayIn)/100000000).toFixed(8)]
186+
]
187+
});
188+
table3.setData({
189+
headers: ['Info'],
190+
data: [
191+
['CURRENT STREAK', currentstreak],
192+
['MAX WIN STREAK', maxwinstreak],
193+
['MAX LOSS STREAK', maxlossstreak],
194+
['MAX LOSTRK AMOUNT', maxlossstreakamount],
195+
['MAX BET AMOUNT', maxbetamount]
196+
]
197+
});
178198
table1.focus()
179199
table2.focus()
180200
table3.focus()

src/public/js/999Doge/info.js

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,38 @@ function consoleStats(userinfo, cv){
163163
let info = JSON.stringify(userinfo.Balances[cv]);
164164
console.log(info.replace(/\"/g,""));
165165
wagered = (Math.abs(userinfo.Balances[cv].TotalPayIn)/100000000).toFixed(8);
166-
table1.setData(
167-
{ headers: ['balance','profit', 'wagered','wins','bets','losses']
168-
, data:
169-
[[parseFloat(userinfo.Balances[cv].Balance/100000000).toFixed(8), ((userinfo.Balances[cv].TotalPayIn+userinfo.Balances[cv].TotalPayOut)/100000000).toFixed(8), (Math.abs(userinfo.Balances[cv].TotalPayIn)/100000000).toFixed(8), userinfo.Balances[cv].TotalWins, userinfo.Balances[cv].TotalBets, (userinfo.Balances[cv].TotalBets-userinfo.Balances[cv].TotalWins)]] });
170-
table2.setData(
171-
{ headers: ['balance','profit', 'wagered','wins','bets','losses']
172-
, data:
173-
[[parseFloat(userinfo.CurrentBalances[cv].Balance/100000000).toFixed(8), ((userinfo.CurrentBalances[cv].TotalPayIn+userinfo.CurrentBalances[cv].TotalPayOut)/100000000).toFixed(8), (Math.abs(userinfo.CurrentBalances[cv].TotalPayIn)/100000000).toFixed(8), userinfo.CurrentBalances[cv].TotalWins, userinfo.CurrentBalances[cv].TotalBets, (userinfo.CurrentBalances[cv].TotalBets-userinfo.CurrentBalances[cv].TotalWins)]] });
174-
table3.setData(
175-
{ headers: ['maxwinstreakamount','maxstreakamount','minstreakamount','maxbetamount','curstreak','maxwinstreak','maxlossstreak']
176-
, data:
177-
[[maxwinstreakamount, maxstreakamount.toFixed(8), minstreakamount.toFixed(8), maxbetamount, currentstreak, maxwinstreak, maxlossstreak]] });
166+
table1.setData({
167+
headers: ['Info'],
168+
data: [
169+
['BALANCE', parseFloat(userinfo.Balances[cv].Balance/100000000).toFixed(8)],
170+
['WIN', userinfo.Balances[cv].TotalWins],
171+
['LOSS', (userinfo.Balances[cv].TotalBets-userinfo.Balances[cv].TotalWins)],
172+
['BET', userinfo.Balances[cv].TotalBets],
173+
['PROFIT', ((userinfo.Balances[cv].TotalPayIn+userinfo.Balances[cv].TotalPayOut)/100000000).toFixed(8)],
174+
['WAGERED', (Math.abs(userinfo.Balances[cv].TotalPayIn)/100000000).toFixed(8)]
175+
]
176+
});
177+
table2.setData({
178+
headers: ['Info'],
179+
data: [
180+
['BALANCE', parseFloat(userinfo.CurrentBalances[cv].Balance/100000000).toFixed(8)],
181+
['WIN', userinfo.CurrentBalances[cv].TotalWins],
182+
['LOSS', (userinfo.CurrentBalances[cv].TotalBets-userinfo.CurrentBalances[cv].TotalWins)],
183+
['BET', userinfo.CurrentBalances[cv].TotalBets],
184+
['PROFIT', ((userinfo.CurrentBalances[cv].TotalPayIn+userinfo.CurrentBalances[cv].TotalPayOut)/100000000).toFixed(8)],
185+
['WAGERED', (Math.abs(userinfo.CurrentBalances[cv].TotalPayIn)/100000000).toFixed(8)]
186+
]
187+
});
188+
table3.setData({
189+
headers: ['Info'],
190+
data: [
191+
['CURRENT STREAK', currentstreak],
192+
['MAX WIN STREAK', maxwinstreak],
193+
['MAX LOSS STREAK', maxlossstreak],
194+
['MAX LOSTRK AMOUNT', maxlossstreakamount],
195+
['MAX BET AMOUNT', maxbetamount]
196+
]
197+
});
178198
table1.focus()
179199
table2.focus()
180200
table3.focus()

src/public/js/Bitsler/info.js

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,38 @@ function consoleStats(userinfo, cv){
185185
let info = JSON.stringify(userinfo.info);
186186
console.log(info.replace(/\"/g,""));
187187
wagered = userinfo.info.wagered;
188-
table1.setData(
189-
{ headers: ['balance','profit', 'wagered','wins','bets','losses']
190-
, data:
191-
[[userinfo.info.balance, userinfo.info.profit, userinfo.info.wagered, userinfo.info.wins, userinfo.info.bets, userinfo.info.losses]] });
192-
table2.setData(
193-
{ headers: ['balance','profit', 'wagered','wins','bets','losses']
194-
, data:
195-
[[userinfo.currentInfo.balance, userinfo.currentInfo.profit, userinfo.currentInfo.wagered, userinfo.currentInfo.wins, userinfo.currentInfo.bets, userinfo.currentInfo.losses]] });
196-
table3.setData(
197-
{ headers: ['maxwinstreakamount','maxstreakamount','minstreakamount','maxbetamount','curstreak','maxwinstreak','maxlossstreak']
198-
, data:
199-
[[maxwinstreakamount, maxstreakamount.toFixed(8), minstreakamount.toFixed(8), maxbetamount, currentstreak, maxwinstreak, maxlossstreak]] });
188+
table1.setData({
189+
headers: ['Info'],
190+
data: [
191+
['BALANCE', userinfo.info.balance],
192+
['WIN', userinfo.info.wins],
193+
['LOSS', userinfo.info.losses],
194+
['BET', userinfo.info.bets],
195+
['PROFIT', userinfo.info.profit],
196+
['WAGERED', userinfo.info.wagered]
197+
]
198+
});
199+
table2.setData({
200+
headers: ['Info'],
201+
data: [
202+
['BALANCE', userinfo.currentInfo.balance],
203+
['WIN', userinfo.currentInfo.wins],
204+
['LOSS', userinfo.currentInfo.losses],
205+
['BET', userinfo.currentInfo.bets],
206+
['PROFIT', userinfo.currentInfo.profit],
207+
['WAGERED', userinfo.currentInfo.wagered]
208+
]
209+
});
210+
table3.setData({
211+
headers: ['Info'],
212+
data: [
213+
['CURRENT STREAK', currentstreak],
214+
['MAX WIN STREAK', maxwinstreak],
215+
['MAX LOSS STREAK', maxlossstreak],
216+
['MAX LOSTRK AMOUNT', maxlossstreakamount],
217+
['MAX BET AMOUNT', maxbetamount]
218+
]
219+
});
200220
table1.focus()
201221
table2.focus()
202222
table3.focus()

0 commit comments

Comments
 (0)