Giter Club home page Giter Club logo

travisci-telegam-bot's Introduction

TravisCI-Telegam-Bot

Telegram bot, which will notify you each time, when your Travis CI build is done.

Usage

To start using this bot send him message

You can type /help or /how to get more useful information about how it works.

You should send the link to your Travis CI repository like https://travis-ci.org/emberjs/ember.js. After that, a bot will listen for new builds and will notify you each time when your build is done.

How it works

When you sending your Travis CI repository link, bot making the HTTP request to get the current state of build. Then it storing number of current build and then creating a new variable with the same value. Then it making new HTTP request each 7 seconds to get current information, and then it's parsing JSON and assigning a current number of build to currBuiltNumber. If currBuiltNumber number equal prevBuiltNumber, then nothing has been changed. Else it's checking if a build has been done by getting a value of last_build_finished_at. If last_build_finished_at does not equal null then it means that new build just has been finished and it will send you a message with some basic information about your build.

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. Create new Pull Request

If you find any issues, please feel free to contribute to repository issues

This bot is posted on heroku.

travisci-telegam-bot's People

Contributors

artemgurzhii avatar

Watchers

James Cloos avatar Udo Kifferbrehl 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.