/gds-telegram-bot-lite

Simple Telegram bot for IDA GDS!

Primary LanguageRuby

GDS telegram bot rails

Simple Telegram bot for IDA GDS! Still work in progress!

Using the telegram-bot-ruby wrapper for Telegram API.

Installation

Execute:

$ bundle

Running the bot

First things first, you need to obtain a token for your bot. Then add your API token as an environment variable 'API_TOKEN'

Execute:

$ rake db:create db:migrate
$ ruby bot.rb

Contributing

  1. Fork it
  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 new Pull Request

Usage

/qotd: Return a random developer quote from http://fortrabbit.github.io/quotes/

/qotd_gds: Return a random user-submitted quote

/qotd_gds_add <author name> the actual quote: Add your own quote to the list! Only works if you PM the bot. (example: /qotd_add <Shia Labeouf> Don't let your dreams be dreams)

/hashtag_count #<hashtag_name>: Returns the number of messages with the hashtag specified. (example: /hashtag_count #hype)