Coder Social home page Coder Social logo

isitup's Introduction

IsItUP? Bot

Telegram bot to verify if a website is up or track an URL to be notified when it gets down. https://t.me/Is_it_UPBot

Installation

  1. Meet IsItUP? at telegram :D

or run your own bot

  1. Clone the project
  2. Go to directory
cd IsItUP/
  1. Set an enviroment variable called IS_IT_UP_TOKEN with your telegram token. To learn how to do: read this great article. At bash:
export IS_IT_UP_TOKEN=your_telegram_token
  1. (Optional) Setup Firebase. (If you want the track feature)

    • Create a Firebase project and download the credentials
    • Set environment variables called IS_IT_UP_FIREBASE_PRIVATE_KEY, IS_IT_UP_FIREBASE_CLIENT_EMAIL and IS_IT_UP_FIREBASE_DATABASE_URL with your firebase credentials (private key and client email are in the downloaded file)
  2. Install node and npm

  3. Download the dependencies

npm install
  1. Run the script
npm start

Usage

It can be done with IsItUP? bot or your own bot.

Conversation

  • Start a conversation
  • Type:
/verify https://telegram.org

or just

https://telegram.org

to verify the availability of one website

Track (if enabled)

  • To track an URL, you have to type:
/track https://telegram.org
  • To get a list of URLs you are tracking:
/track_list

Every 5 minutes the bot you run a check all tracked URLs, if the status of an URL get changed(up->down, down->up), the user will be get notified.

Group

  • Invite the bot to a group

  • Call it by name and tell the domain

@Is_it_UPBot https://telegram.org

PS: telegram.org is a sample(of course :D), type whatever you need.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Thanks

License

MIT

isitup's People

Contributors

wberredo avatar

Watchers

James Cloos avatar Marcelo Itapirema 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.