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

Latest commit

 

History

History
46 lines (34 loc) · 1.6 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.6 KB

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