Giter Site home page Giter Site logo

suhasa010 / ebooks_request_generator_bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pirasalbe/ebooks_request_generator_bot

3.0 0.0 0.0 208 KB

Telegram bot that creates a text message from the link address of an Ebook

License: GNU General Public License v3.0

JavaScript 0.65% TypeScript 99.35%

ebooks_request_generator_bot's Introduction

Ebooks Request Generator bot

Telegram bot that creates a text message from the link address of an Ebook.

Open on Telegram.

Message format

#request [tags]
Title: [book title]
Author: [book author]
Publisher: [book publisher]
Link: [link received]

The available tags are:

  • language tag, such as #italian, #french, etc
  • kindle unlimited tag #KU
  • audiobook tag #audiobook
  • scribd tag #scribd for requests from Scribd

The tags are automatically added based on the url provided.


Example:

#request
Title: Serpentine
Author: Philip Pullman
Publisher: Knopf Books for Young Readers
Link: https://www.amazon.com/His-Dark-Materials-Philip-Pullman-ebook/dp/B08CL2WJ34/ref=tmm_kin_swatch_0?_encoding=UTF8&qid=1634305599&sr=8-1

Features

Extract message from Amazon

Given an Amazon link of a Kindle book, it returns the request message.

Amazon supported links:

  • amazon.com
  • amazon.co.uk
  • amazon.ca
  • amazon.com.au
  • amazon.in
  • amazon.it
  • amazon.de
  • amazon.es
  • amazon.fr

Extract message from Audible

Given an Audible link of an audiobook, it returns the request message.

It always add the #audiobook tag.

Extract message from Scribd

Given a Scribd link of either an ebook or an audiobook, it returns the request message.

It always add the #scribd tag. If it is an audiobook, it also add the #audiobook tag.

Known bugs

  • Cannot get language information from Scribd links

Instructions

Build

npm run build

Deploy

Start script

npm start

ย 

Define token and run the project

BOT_TOKEN="110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw" npm start

Replace the token in the command, which is invalid, with your own.

ebooks_request_generator_bot's People

Contributors

pirasalbe avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.