Git Product home page Git Product logo

machine's Introduction

machine

Purpose of this project is to create an extremely high performance multi-server scriptable IRC bot. The main goals are handling thousands of connections at once.

Goals

  • High performance
  • Modular design
  • Extensible via perl commands/modules/event hooks
  • Multi-server (should be able to handle THOUSANDS of server connections)

Current Features

  • Asynchronous multi-process design
  • Connections are handled asynchronously by a master process. This process then dispatches out data coming in from the connections to the child processes. Each child process is running it's own perl interpreter. The child process parses the message from the connection and dispatches it to the perl interpreter running it's own event handlers.
  • Perl handles all the commands and most events. The connection process and specifying servers are still handled in the core code and need to be scriptable which they are not right now.
  • Adding new connections is possible but it's not handled correctly right now.

Major issues needing to be addressed

  1. When creating new connections through the irc_connect command the callbacks to listen for data are not assigned correctly (as they are for the primary connection).
  2. As a result of #1. multi-connections are not really being handled properly right now

machine's People

Contributors

fprintf avatar timousine avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

machine's Issues

reload is not working

reloading the children is not working...after they reload the first use of a command often causes a shutdown. There doesn't appear to be any segfaults though so more debugging is needed

Need a method of registering a user with the bot

We need a way to register accounts with the bot similar to Nickserv so that we can configure contact information for communicating to a user not currently active in the channel via email, text messaging, or a third party app. This would open other possibilities to provide customization for each user interacting with the bot.

improve mod_perl config functions to allow reaching all any depth of the config hash

Currently you can only access one level deep into the hash, this means there is no reasonable way to setup multiple servers outside of doing someting stupidl ike server_one, server_two_host, server_two_pass, etc..

This is easily fixable by making the existing mod_conf_foreach function recursive and a little smarter about how it does callbacks, alternatively we could do this with a state machine

build process is working somewhat but still needs work

The central make file is working now but needs more work. We should lookup the 'recursive make is considered harmful' tutorial that explains how to setup multi-directory make like this...I'm lazy about it

Currently the make clean process is erroring out and looping recursively too many times for some reaosn, it ends up doing the right thing but errors out afterwards and just loops through the directories too many times

Modules should be loaded using a more modern approach such as Module::Pluggable

The way modules are currently loaded is archaic and error-prone and currently makes reloading modules very tricky

There are already existing modules that can handle this dirty work for us and provide more more user friendly interfaces of loading custom code

We should use Module::Pluggable as a starting point this will likely require refactoring the existing modules to use the new interface but it should be fairly seamless

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.