Skip to content

A Telegram bot to fetch book details from Goodreads.com

Notifications You must be signed in to change notification settings

iambibhas/GoodreadsBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BookInfoBot for Telegram

This is a simple bot that runs on Heroku and searches for books on Goodreads.

Mine is running at http://t.me/bookdetails_bot

Usage

Send this to the bot in PM or in a group where the bot is added.

/book <search term>

Develop/Contribute

  • Run npm install

  • Install Heroku cli

  • Run heroku login and login

  • To run locally, create a file .env and put these in it -

     GOODREADS_KEY=<key>
     GOODREADS_TOKEN=<token>
     TELEGRAM_BOT_TOKEN=<bot:token>
    
  • Then run heroku local web

  • To run on heroku server, follow heroku tutorial to connect the forked repo with your heroku account

  • Then set the secret config -

     heroku config:set GOODREADS_KEY=<key> -a <app-name>
     heroku config:set GOODREADS_TOKEN=<token> -a <app-name>
     heroku config:set TELEGRAM_BOT_TOKEN=<bot:token> -a <app-name>
    
  • Then deploy on heroku using your preferred method.

About

A Telegram bot to fetch book details from Goodreads.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.3%
  • HTML 0.7%