Code Monkey home page Code Monkey logo

anope-github's Introduction

Table of Contents
==================
   1. Introduction
   2. Requirements
   3. Installation
      a) Installation from a .tar.gz
      b) Installation from github as a submodule
      c) Installation of the JSONcpp library from a .tar.gz
   4. Configuring Anope to use this module
   5. Configuring Apache to hide the secret services IP
   6. Configuring your GitHub project to send the data to anope


1. Introduction
================
   This anope module listens for JSON commit data from github and uses an
   assigned BotServ bot to relay it into a channel.


2. Requirements
===============
   - a working Anope 1.9.8 or newer
   - the module m_httpd loaded and configured (its part of anopes core)
   - the jsoncpp library. its included with this module, but you can find the
     latest version always at http://jsoncpp.sourceforge.net/

3. Installation
===============
  a) Installation from a .tar.gz
     - put the anope-github.tar.gz file in anope-1.9/modules/extra
     - type 'tar -xzf anope-github.tar.gz', you should have a directory
       anope-1.9/modules/extra/anope-github/ now
     - go to anope-1.9/build/  and type "cmake ."
       cmake will detect the new files now
     - type 'make install'
  b) Installation from GitHub as a submodule
     - go to your anope-1.9-git/ directory and type
       "git submodule add
             git://github.com/Adam-/anope-github.git modules/extra/github"
       this creates a new directory anope-1.9-git/modules/extra/github
     - you can update this module by using the "git submodule update" command
     - go to anope-1.9/build/  and type "cmake ."
       cmake will detect the new files now
     - type 'make install'
   c) Installation of the JSONcpp library from a .tar.gz
       TODO: ask Adam

4. Configuring Anope to use this module
=======================================

   Copy the shipped github.example.conf file to your ~/services-2.0/conf/
   directory and add following line to your services.conf

      include { type = "file"; name = "github.example.conf"; }

   Make sure you also enable and configure the m_httpd module.
   m_github always uses "httpd/main"

5. Configuring Apache to hide the secret services IP
====================================================
   Apache needs the mod_proxy module loaded.
   Add following lines to your apache virtualhost configuration. (root required)

      ProxyPass /api/github/ http://192.168.0.1:1234/github
      ProxyPassReverse /api/github/ http://192.168.0.1:1234/github

   Replace the IP/PORT with the IP of the services and the PORT configured in
   m_httpd.
   This forwards all requests to www.yoursite.net/api/github/ to anope.

6. Configuring your GitHub project to send the data to anope
=============================================================
   In the admin panel of your repository, go to "Service Hooks" and enable
   "WebHook URLs". Put the path to www.yoursite.net/api/github/ (as configured
   in step 5) in and don't forget to press "Update Settings".
   Commit to your project and enjoy.

anope-github's People

Contributors

adam- avatar dukepyrolator avatar shutterquick avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.