Git Product home page Git Product logo

jobcan-bot's Introduction

Jobcan Bot for automatically filling out time tracking on jobcan.ne.jp

This bot allows you to fill out your timesheet in Jobcan automatically. It utilizes WebDriver/Selenium for this task.

How to run

You will need to have the Rust programming language installed (including Cargo).

You will need to manually start ChromeDriver via chromedriver --port=4444 in a different terminal window or tab. Then simply run cargo run -- --config=<path-to-your-configuration-file>. You can install chromedriver on macOS via brew install chromedriver.

You will need to either have a CSV file with your timesheet data or manually input the data for the specified date. See cargo run -- --help for available options.

Note

You must have logged into Jobcan's website manually at least once before in order to set your password.

Configuration

The configuration is done in a .env file. It is expected to be in the same folder as the executable. See .env.example for the available configuration options.

Slack integration

You can also configure this bot to automatically post a message to a specific Slack channel after punshing into Jobcan. You will need to set the SLACK_TOKEN environment variable (or set it in your .env file). Then you can specify the channel and message via the --slack-channel (default: #standup) and --slack-message command line arguments.

By default --slack-message will use the same message you specified for Jobcan.

Copyright

Copyright Šī¸ 2021 by Daniel Kurashige-Gollub [email protected]

License

MIT

jobcan-bot's People

Contributors

dgollub avatar

Watchers

James Cloos 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.