JaWarrior12 / New-Light

New Light is a Dredark Clan Management Bot.
2 stars 1 forks source link

Rewrite Distribution Verification #66

Closed JaWarrior12 closed 8 months ago

JaWarrior12 commented 8 months ago

I will be rewriting the distro log verification code as it is broken.

JaWarrior12 commented 8 months ago

Ideas Dump

JaWarrior12 commented 8 months ago

Current Replit AI Prompt: (Just to see if it spits out something to help, not 100% reinvent the wheel) Replit Repl

Create a program to verify item transfers between using the https://pub.drednot.io/prod/econ/12_2_2024/log.json.gz and https://pub.drednot.io/prod/econ/12_2_2024/ships.json.gz files (both are GZIP) to compare the amount actually transfered (listed in the log.json.gz file) and the amount the user claimed to transfer (user input). Each item in the log file marks one individual item transfer, so they must be totaled in order to find how much was transferred in total. The program searches for the proper log by finding the ship ID (labeled as "src" in the log.json.gz file) and the clan storage ID (labeled as "dst" in the log.json.gz file) and item name.

JaWarrior12 commented 8 months ago

Fixed the system, still a bit to do in security & cleaning shitcode