Skip to content

Latest commit

 

History

History
70 lines (52 loc) · 1.86 KB

README.md

File metadata and controls

70 lines (52 loc) · 1.86 KB

ichika-janken-auto

NOTICE: Now supports 毎週!いちかの超BEMANIラッシュ2020

Supporting

Requirements

How to use

First, clone the repository. You can also download the repository via https://github.com/jhs7jhs/ichika-janken-auto/archive/master.zip.

git clone https://github.com/jhs7jhs/ichika-janken-auto.git

Copy logindata.example.json to logindata.json.

cp logindata.example.json logindata.json

Open logindata.json and write your ID and password.

{
    "login_id": "example_id",
    "pass_word": "example_password"
}

Then run run.py to Janken!

./run.py
# or
python3 run.py

You can also run the code with a json file of which name is not logindata.json.

# If the file name is another_logindata.json, then
./run.py another_logindata.json
# or
python3 run.py another_logindata.json

How to set a schedule

You can use this code everyday with a scheduler like:

cron

Don't forget to use cd command before running the code. The code uses local path: captcha.json and logindata.json, so you must run the code in the path which those files are in.

1 10,15,20 * * * cd /your/path/to/ichika-janken-auto && ./run.py

Windows Task Scheduler

You can write .bat script file to run the code, and add a schedule to run the script. Don't forget to use cd command before running the code, like using cron described above.