Skip to content
/ cpbot Public

Competitive programming contests reminder bot, powered by https://clist.by

License

Notifications You must be signed in to change notification settings

azaky/cpbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3a6aa14 · Jul 27, 2018

History

33 Commits
Sep 29, 2017
Jul 27, 2018
Sep 29, 2017
Jun 24, 2018
Jun 24, 2018
Jun 24, 2018
Sep 25, 2017
Sep 30, 2017
Sep 29, 2017
Sep 29, 2017
Sep 29, 2017

Repository files navigation

cpbot

Competitive programming contests reminder bot, powered by https://clist.by.

Currently only Line bots exist. More to come. Meanwhile, add me on Line!

Tambah Teman

Developing

Prerequisite:

Envvars:

  • CLIST_APIKEY=username:... without ApiKey
  • REDIS_ENDPOINT=host:port
  • LINE_CHANNEL_SECRET
  • LINE_CHANNEL_TOKEN
  • LINE_GREETING_MESSAGE message to be shown upon join/add as friend event
  • LINE_DAILY_DEFAULT default schedule for daily reminder
  • LINE_DAILY_PERIOD period of cron job of sending daily reminder. Suggested: 1800 (half an hour)
  • LINE_MAX_MESSAGE_LENGTH max length of a message. Limit from Line is 2000. Suggested: 1000.

Running locally: Use realize to develop locally and watch for file changes.

go get github.com/tockins/realize

CLIST_API_KEY=... \
MORE_ENVVAR=... \
realize run

Deploying

Line requires SSL for all their webhooks. I suggest deploying to Heroku. After that, set your line webhook to https://url/line/callback

About

Competitive programming contests reminder bot, powered by https://clist.by

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages