Using npm
or using yarn
Replace all <class> with your class variable (ITEM or BALANCE)
The slots function takes in 4 arguments:
1.
Id
id of user
2.
Amount
amount to bet
3.
Items
items is an array of all possible items in the slots board
4.
Num
number of items on the resulting board
It returns an object with a
board
(array) property and a
win
(boolean).
choice
is the argument which takes in users choice
id of user (it can be "h" or "head" or "heads" or "t" or "tail" or "tails").
It returns an object with a
coin
(bot choice of coin) property and a
win
(boolean).
This will return an array of the leaderboard.
This will return a boolean value depending on if the user has amount of coins or not.
Made with ❤️ by squik.