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

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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