Skip to content
/ whosinbot Public

A re-write of the WhosInBot Telegram bot using golang and serverless

Notifications You must be signed in to change notification settings

col/whosinbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

11dcf7e · Oct 31, 2018

History

48 Commits
Oct 31, 2018
Oct 31, 2018
Oct 17, 2018
Oct 31, 2018
Aug 1, 2018
Oct 17, 2018
Oct 31, 2018
Mar 28, 2018
Aug 1, 2018
Jul 16, 2018
Jul 14, 2018
Oct 31, 2018
Oct 31, 2018
Oct 31, 2018
Jun 5, 2018
Aug 1, 2018
Jul 19, 2018
Jul 16, 2018
Oct 17, 2018

Repository files navigation

WhosInBot

Environment setup

You will need .env file, refer to .env.template Use aws configure to generate config files

Register webhook

Set Webhook

curl -XPOST https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/setWebhook?url=$WEBHOOK_URL/$TELEGRAM_BOT_TOKEN

Get Webhook Info

curl -XPOST https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getWebhookInfo

Dependencies

Install AWS CLI tools

brew install awscli
aws configure --profile col.w.harris

Install serverless

npm install -g serverless

Build

make build

Run tests

make test

Deploy

source .env
make deploy

Links

TODO

  • start_roll_call
  • end_roll_call
  • responses: in, out, maybe
  • whos_in
  • set_title
  • shh / louder
  • set_in_for
  • stats (new)

About

A re-write of the WhosInBot Telegram bot using golang and serverless

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published