Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
ai
Commits
07de946b
Commit
07de946b
authored
Jun 17, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pull
parent
f3944b6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
torobche.js
torobche.js
+18
-7
No files found.
torobche.js
View file @
07de946b
...
@@ -8,7 +8,7 @@ let arr = []
...
@@ -8,7 +8,7 @@ let arr = []
let
lastBalance
=
10000
let
lastBalance
=
10000
let
balance
=
lastBalance
let
balance
=
lastBalance
init
()
init
()
badLoader
()
let
base
=
1
let
base
=
1
let
com
let
com
...
@@ -30,18 +30,28 @@ run()
...
@@ -30,18 +30,28 @@ run()
}
}
async
function
badLoader
()
{
async
function
lastCheck
(
param1
,
param2
,
param3
)
{
let
bad
=
await
fs
.
readFileSync
(
'
bad.txt
'
,
'
utf8
'
);
let
bad
=
await
fs
.
readFileSync
(
'
bad.txt
'
,
'
utf8
'
);
bad
=
JSON
.
parse
(
bad
)
bad
=
JSON
.
parse
(
bad
)
base
=
parseFloat
(
bad
.
bad
)
base
=
parseFloat
(
bad
.
bad
)
if
(
param3
<
base
)
{
let
z
=
{
maxReserve
:
param1
,
balance
:
param2
,
bad
:
param3
}
await
createfileADV
(
JSON
.
stringify
(
z
))
}
await
sleep
(
100
)
return
badLoader
()
}
}
...
@@ -97,9 +107,10 @@ async function run()
...
@@ -97,9 +107,10 @@ async function run()
if
(
worth
<
base
)
{
if
(
worth
<
base
)
{
base
=
worth
base
=
worth
console
.
log
(
arrNew
[
0
].
sum
,
balance
,
worth
)
console
.
log
(
arrNew
[
0
].
sum
,
balance
,
worth
)
let
z
=
{
maxReserve
:
arrNew
[
0
].
sum
,
balance
:
balance
,
bad
:
base
}
// let z={maxReserve:arrNew[0].sum,balance:balance,bad:base}
//
await
createfileADV
(
JSON
.
stringify
(
z
))
// await createfileADV(JSON.stringify(z))
await
lastCheck
(
arrNew
[
0
].
sum
,
balance
,
base
)
}
}
// let start=false
// let start=false
// let arr2=[]
// let arr2=[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment