Package: vbet
Vbet is a lightweight server that provides an online betting bot targeting virtual games
on various betting providers globally.NoteAlways make sure to run the latest version of our server as new players and quick patches are released very often.InstallInstall latest stable version :using pippip install vbetgithub cloneClone the repository with the default being the
stable releaseLink.Instructions on how to clone can be
foundHow to clone.Starting the serverGit cloneNavigate to thebindirectory and execute thevrunscript.It supports multiple arguments which can be shown using the–helpor-hflags../vrun-abetika-p9000-vvPipInstallation via pip will addvrunto your path.vrun-abetika-p9000-vvAbove, the-aflag specifies an api name from the list of providers. Refer to Providers below.
The-pflag is used to specify the port where the websocket server listens.The-vvflag specifies the highest level of verbosity.Note:Choose a port above 1000 to prevent root privilege issues Default 9000.By default the server binds to the localhost.VshellThe vshell provides the interface to our server. We can use it to perform critical calls to the server.
The shell connects to the server using websockets to the websocket server.To get started with the shell:Git cloneNavigate to thebindirectory and run:./vshell--port9000PipInstallation via pip will addvshellto your path.vshell –port 9000The shell supports multiple commands which are accessible using thehelpcommand:helpThe shell is interactive and takes in auriwhich is a command and arguments if any and executes them asynchronously.
The shell is always running only if the server instance is running. If the server goes offline
then the shell immediately terminates.Any commands that are sent to the websocket server and have
any response output are flushed to the shell ounce the response is available.The payload being sent is also
displayed on the shell on each command if it involves a server call. e.gadd,loginGetting StartedBefore getting started, make sure you have an existing account with one of our supported providers.Supported providers:BetikaMozartOpen two terminals.On the first on make sure the server is up and running:vrun-abetika-vvOn the second to add users and interact with our server we launch the vshell using:vshellLive UsersLoginTo get started with adding live users to the system involves using thelogincommand.
It requires two arguments,usernameandpassword.login 0712345678 1234The above command will trigger a login call to the api name backend and request for an access
token that is stored for a specified duration of time per api backend. The access tokens are
stored in redis and are persistent across restarts. Ounce the user is cached
on the server then theaddcommand is used to add a user to a live session.Different providers have different expiry durations for the access tokens. Make sure not
to perform anaddoperation using an expired token.Note:You cannot add a user unless the user is already cached. Always run the login command ounce for every new
user.Future versions will correctly invalidate access tokens using validated expiry durationsAddIt requires two arguments,username,demo. Thedemoargument uses the integer
1 forlive accountand 0 fordemo accountlive accountadd 0712345678 1demo accountadd 0712345678 0ShutdownUsing the shell :To gracefully shutdown the server and exit all sessions use theexitcommand.exitWhile running :PressingCtrl + Con the Keyboard performs awarm shutdown. A second press will cause a cold
shutdown.AdvancedThe default settings file is thevbet.core.settings. It can be used to configure major
changes like log directory, live games and default api name.These directories are created automatically in the running directory:cache- contains directory per competition used to cache virtual events.data- stores file per user configuration data for game play.logs- default log directory. Default log filevbet.logCompetitionAcompetitionfeatures a single football league that can be simulated. Every provider has
a list of supported competitions on their website. We support allOn Demandvirtual football
games.Supported competitions:EPL Premier - 14045Spain Laliga  - 14036Italy Calcio  - 14035Germany Bundesliga - 41047Kenya KPL - 14050By default all supported competitions are started which can be changed in theaddcommand by
providing a space separated list of code values for each competition.add 0712345678 0 14036 14045PlayersFor the dedicated users. We provide a way to select the current activeplayer.
A player is an algorithm that produces tickets and there is a number of preinstalled
players. They are named using symbolic football player names.You can enable a new player by tweakingline: 100ofvbet.game.competitionand provide a list of
optional players you would like to enable. Note that each player will be installed for each competition.
Multiple players can also play at the same time.More information will be available later on the details of each player.More detailed information will be available in the coming weeks to guide on creating custom players.Installed Players:dybala -recommendedozil  -recommendedfatironaldoxavipuigsalahrooneymessineymarhazardmbapeDefault installed player isozil.Account ManagersThe main account manager controls the user account balance.It ensures the balance is upto date
when using live mode and takes care of simulating tickets in demo mode.It also synchronizes all
account managers in all players in every competition.Every player has an account manager. The manager acts as a money
management scheme to regulate the algorithm.Account managers:FixedStakeAccount -recommendedFixedProfitAccount -recommendedRecoverAccount -high riskTokenAccountRecoverShareAccountNote:The default stake for demo account  isKsh 100,000.More information will be available later on the details of each account manager.