Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

tsnaik/hastebin-bot

Repository files navigation

This repository is not being maintained anymore. The bot will probably not work as the mLab add-on Heroku has been shut down and I haven't gotten a chance to migrate.

Hastebin Telegram Bot

Simple telegram bot for creating and sharing Hastebin snippets. Give it a spin

Prerequisites

Setup

  • Install dependencies

    $ npm install
  • Create a file named .env in the project root with content:

    TELEGRAM_TOKEN=<your-unique-token>
    BOT_URL=https://b2c4a7b6.ngrok.io # replace this with your own URL
    MONGODB_URI=mongodb://localhost:27017/hastebot # replace this with your local mongodb URI
    
    • Use ngrok for testing on local server and set its url as BOT_URL

    • You can also specify a port. Default is 5000

      PORT=3000
      

Run

$ npm start

Deploy

About

Telegram bot for creating and sharing hastebin snippets on the fly

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published