Simple Telegram bot for IDA GDS! Still work in progress!
Using the telegram-bot-ruby wrapper for Telegram API.
Execute:
$ bundle
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
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
/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
)