Giter Site home page Giter Site logo

mpos-bot's Introduction

Description

This bot was written and designed for mmcfe-ng, specifically the API supplied with mmcfe-ng. It was intended as a simple IRC solution to notify users of new blocks and offer some commands to check the pool status.

Requirements

  • python-daemon

Installation

Download the source code via git. Ensure you have python-daemon installed:

easy_install python-daemon

or via your distributions package repository, if available.

Configuration

Copy the sample configuration file conf/example.cfg and replace settings as you see fit.

Running the Bot

Execute the supplied python script to fork the process in the background:

./ejgithub.py

Closing the Bot

Kill the process ID via kill and remove the PID files afterward. This shall be added as a cleanup call later down the road.

Adding Commands

If you want to add your own commands please check the supplied ones in the commands folder. They are simple to create and easy to add to the bot.

  • Create a new subfolder in commands, this will be your commands name
  • Create a new file __init__.py in your commands subfolder
  • Create a new def yourcommand_run_cmd which is called when your command is triggered (see samples supplied)
  • Returned data of that command is send to the IRC channel

Reloading Commands

Whenever you are working with commands you might want to re-load these without re-starting the bot. You can do so by sending the SIGUSR1 signal to the process. It will re-hash all commands available and you should be able to try them out or edit them anytime.

Blocknotify

The bot does support coins blocknotify scripts. As with reloading commands, send a SIGUSR1 call to the process to enforce a blockupdate request. Might be useful for those with very fast block finding rates.

License

TBA

mpos-bot's People

Contributors

mpos123 avatar wknight- avatar nrpatten avatar

Watchers

 avatar

Forkers

raskal8

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.