Giter VIP home page Giter VIP logo

aoc-bot's People

Contributors

jackonelli avatar seljelid avatar

Watchers

 avatar  avatar  avatar

aoc-bot's Issues

Daily leaderboard update

A daily leaderboard update push to Discord
Prints the leaderboard, including indications of position changes from last day.

Construct tricky diff json's

Testing is hard because actual AoC updates are hard rare.

We ought to artificially construct two jsons:
test_prev.json
test_later.json

where test_later.json has a lot of corner case events registered, e.g.:

  • New players
  • Old players leaving the leaderboard
  • New star 1 only
  • New star 2 only
  • Both starts new.

Local local score

Do not trust the calculated local score in json.
Calculate based on day completion instead.

New players in diff is incorrect

It should rather be:
new_players and lost_players
And the diff check should be more thorough. Number of players is suff. but not nec. cond for diff.

Remove all (unnec) panics

I.e. non-panicking error handling.
I.e. actual error handling.
The bot should never exit on error

Remove serenity dep from aoc-data

Given the plan (#14) to split into two crates:

  • aoc-bot
  • aoc-data

The aoc-data should not depend on serenity. Curently, it does so through the AocError, which is easily fixed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.