Нема описа

KeyMasterOfGozer aba2b6cb6f Added Function to find Total spend to complete Crystalization пре 9 месеци
.gitignore 7f10bcda42 Add Graph Plotting to discord. пре 11 месеци
DiscordBot.md 0f98ee5191 Add stub for Discord Bot, and logging stubs. пре 1 година
README.md 96f6cdfa66 Added Data dump to discord-bot пре 11 месеци
config.py 9e4b571335 Create Objects Market and Player пре 1 година
db.py aba2b6cb6f Added Function to find Total spend to complete Crystalization пре 9 месеци
discord-bot.py 35791ce2d9 There are 41 cards in longest subset. пре 11 месеци
gatherMarket.py 5993f0aacf Better Error messaging on HTML errors. пре 11 месеци
logger.py 0f98ee5191 Add stub for Discord Bot, and logging stubs. пре 1 година
market.py 5993f0aacf Better Error messaging on HTML errors. пре 11 месеци
player.py 5993f0aacf Better Error messaging on HTML errors. пре 11 месеци

README.md

BoobyLegends Economic Helper

This is intended as a helper to find trends in the Booby Legends game.

I intend to built a Discord Bot Interface to let us share in our guild.

Running Executables

Gather Marketing Data

This will gather marketing data every 15 minutes, and build an average for each day in UTC timezone.

python3 gatherMarket.py

Classes

There are some main components written as python classes.

Market

Loads the current Market values for cards.

You can initialize the Market List like this:

from market import Market
m=Market()
m.fetchData()
m.show()

Show a filtered Market Page with cards you alreqady have Crystalized removed.

from market import Market
m=Market()
m.fetchData()
m.filterMarketCards(False)
#After doing stuff...
m.closePage()

Player

Loads the current Player values for cards. To get stock values, a "config.json" file must be in the folder with a "cookie" defined to have the player's login. I got my cookie by using the "EditThisCookie" plugin for Chrome. The config file should looks omething like this.

{
    "cookie":
        {
            "name":"wordpress_logged_in_f129834928365fbaer348384348y23423uy2323",
            "value":"keymasterofgozer%8ksojhelFM88efn98709cvaSneOVWEUVn9dvs9eVASEvjSEv8ksojhelFM88efn98709cvaSneOVWEUVn9dvs9eVASEvjSEv8ksojhelFM88efn98709cvaSneOVW"
        }
}

You can initialize your Player list like this:

from player import Player
p=Player()
p.fetchData()
p.show()

Get a List of non-crystal remaining Cards to collect

from player import Player
p=Player()
p.fetchData()
p.show(fields=['name','level','stock'],filter='stock != "CRYSTAL"')

Market Data

from db import MarketDB, hist, plot
hist(2)
plot(2)