Coder Social home page Coder Social logo

osu-time-tracker's Introduction

osu! time tracker

Tracks the amount of time spent playing the actual game.

osu! time tracker is a tool that allows you to track the amount of time you spend playing beatmaps in osu!. It utilizes the osu! API to retrieve information about your recent plays and the beatmaps you played.

Summary

The program runs in an infinite loop, checking for new plays every 2 seconds. If a new play is detected, it retrieves the beatmap information and calculates the time spent playing. If the play was a full completion of the beatmap, it adds the total length of the beatmap to the total time spent playing. If the play was a failure, it parses the beatmap file to find the amount of time spent on the beatmap.

Usage

  1. Obtain an osu! API key from https://osu.ppy.sh/p/api/.
  2. Rename the sample.config.py file to config.py and replace the placeholders in the file with your osu! API key, osu! username, and desired osu! game mode.
  3. Install the required packages from the requirements.txt file using pip install -r requirements.txt.
  4. Run the main.py file to start the time tracker.
    python main.py
    

osu-time-tracker's People

Watchers

jeevan johnson avatar  avatar

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.