Savant-Dev / v.0.0.1

An all-in-one Discord bot written in Python 3.8.2
0 stars 1 forks source link

Add Fallback Configuration #3

Closed Savant-Dev closed 4 years ago

Savant-Dev commented 4 years ago

In the case that the Web Server times out or fails to retrieve configuration data, we should store a local, default configuration for the Leveling API. This file should be formatted as a JSON like its online counterpart; the details of this file can be found below:


{
"Boosts": {
        "Bounds": [0, 25000, 50000, 100000, 200000, 350000, 600000, 1000000, 2500000, 6000000, 10000000],
        "Values": [25, 30, 35, 40, 45, 50, 60, 75, 100, 150, 200]
      },

"Leagues": {
        "Bounds": [],
        "Names": []
      },

"Levels": {
        "0": [0, 25, 100, 250, 750, 1500, 3500, 7500, 15000, 30000, 50000],
        "1": [300000, 320000, 350000, 400000, 475000, 560000, 640000, 720000, 810000, 900000, 1000000],
        "2": [1000000, 1100000, 1250000, 1500000, 2000000, 2750000, 4000000, 5500000, 7500000, 10000000, 15000000]
      },

"Prestiges": {
        "Bounds": [0, 50000, 100000, 150000, 200000, 250000, 300000, 1000000],
        "Names": ["Not Prestiged", "Prestige 1", "Prestige 2", "Prestige 3", "Prestige 4", "Prestige 5", "Master Prestige", "Master Elite"]
      }
}```
Savant-Dev commented 4 years ago

With the addition of #16 this feature should become 10x easier.

Also, this issue along with #17 can/should be worked on in unison