A twitter bot that notifies you just before AtCoder contest. The purpose is to reduce the number of times you forget to join contests. The bot was inspired by tweets.
DEMO
- Notify you to participate at regular intervals when the day of the contest comes.
- Just click on the follow button on twitter.
Paste the following commands at a Terminal prompt.
$ mkdir hoge
$ cd hoge
$ git clone git@github.com:KATO-Hiro/AtCoderChokuZen.git
-
Sign into your Twitter account, and apply for a developer account.
-
After being approved, click "Create an app", and input App info. Next, click "Key and tokens" tab and "Create" button, you can get "Consumer API Keys" and "Access token info".
Note: The above keys give access to your Twitter account. Keep it confidential and never store them in this repository.
- Create .env files or copy .env.sample as .env.
$ touch .env
Open your editor, filling in your Twitter keys like below. XXXXX means your "Consumer API Keys" or "Access token info".
CONSUMER_KEY=XXXXX
CONSUMER_SECRET=XXXXX
ACCESS_TOKEN=XXXXX
ACCESS_SECRET=XXXXX
Note that .env file is in the project's .gitignore, so it won't be checked into this repository.
Paste the following commands at a Terminal prompt in your cloned directory.
# Setup container
$ docker-compose build
# Run container
$ docker-compose up -d
# Stop container
$ docker-compose stop
# Run a command
$ docker-compose run --rm web hogehoge
- Docker Desktop 19+
- Python 3.8.x
- pip
- Heroku