Sign inSign up

bibendi/twinkle

By bibendi

•Updated over 6 years ago

Notification service

Image
1

4.3K

bibendi/twinkle repository overview

⁠Twinkle

Code Climate Test Coverage Build Status DockerHub Status Dependency Status

Notifications service.

Available transports: Telegram

⁠Usage

⁠Send message

curl -X POST --data "token=user-token&channel=sadness&message=Site+is+Down" http://twinkle.docker/messages

Send message with JSON post-vars curl -X POST --data "token=user-token&channel=sadness&message=json-%{a.b}&json_vars=alert&alert='{"a": {"b": 1}}'" http://twinkle.docker/messages

⁠Show Resque statistics

http://twinkle.docker/resque_web⁠

⁠Installation

⁠Transports
⁠Telegram bot

The first step in creating our bot is to talk to the https://telegram.me/BotFather⁠ and get the token. Let’s create our bot using the command /newbot. Now we have to register for a username, note: it must end in bot, If our bot is named TetrisBot the username must be tetrisbot.

In order to get the group chat id, do as follows:

  • Add the Telegram BOT to the group.
  • Get the list of updates for your BOT: https://api.telegram.org/bot<YourBOTToken>/getUpdates
⁠DIP
⁠Requirements
⁠Setup and Run
  dip dns up
  dip nginx up
  dip provision
  dip rails s
  dip rails c
  dip compose down

  RAILS_ENV=test dip rspec
  RAILS_ENV=test dip compose down

Check http://twinkle.docker/⁠

⁠Roadmap

  • Add transports: Email, SMS

Tag summary

Content type

Image

Digest

Size

412.5 MB

Last updated

over 6 years ago

docker pull bibendi/twinkle