DragonDickWatchbot

Version, currently master branch1 version
  • master branchlatestJun 14, 2019

github.com/nilsding/DraDiWaBo

A Telegram bot for notifying you about nice deals of a certain web site

3 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  DragonDickWatchbot:
    github: nilsding/DraDiWaBo
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.27.0
License
MIT
Author
Georg Gadinger
Target
  • DragonDickWatchbot from src/main.cr

Dependencies

Runtime Dependencies

  • crest*github: mamantoha/crest
  • redis~> 2.1.0github: stefanwille/crystal-redis
  • sidekiq*github: mperham/sidekiq.cr, branch: master
  • telegram_bot*github: hangyas/telegram_bot

Development Dependencies

  • minitest*github: ysbaddaden/minitest.crdev

README

DraDiWaBo

Build Status

This is a Telegram bot which periodically checks Bad Dragon's clearance section for nice deals. Or something like that.

Installation

Dependencies

  • Crystal 0.26.1
  • Redis
  • openssl-devel

Compiling

Since it's Crystal...

shards build

Usage

Server side:

# set the telegram token in ENV
export TELEGRAM_API_TOKEN=some.token

# start the bot
./bin/DragonDickWatchbot start

# check the clearance section and notify interested users
./bin/DragonDickWatchbot notify

# start the workers which send the notifications to the users
./bin/DragonDickWatchbot worker -q send_notification,1 -q notify,1

# (optional) start a web UI to see the worker status
WEB_SESSION_SECRET=heast ./bin/DragonDickWatchbot web

Telegram side:

Start the bot:

  /start

Add a new toy to your watchlist:

  /addWatch nova extralarge
  
Remove a toy from your watchlist:

  /removeWatch nova small
  
Display a list of commands:

  /help

Development

¯\_(ツ)_/¯

Contributing

  1. Fork it (https://github.com/nilsding/DraDiWaBo/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • nilsding Georg Gadinger - creator, maintainer