2017 © Pedro Peláez
 

lithium-library li3_bot

IRC bot for li3.

image

unionofrad/li3_bot

IRC bot for li3.

  • Wednesday, June 1, 2016
  • by davidpersson
  • Repository
  • 7 Watchers
  • 1 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

li₃ bot

About

li3_bot is an IRC bot and webinterface plugin for li3., (*1)

Installation & Configuration

The logging, karma and tell plugins need a working (My)SQL database connection. The schema to initialize the tables can be found under config/schema.sql., (*2)

Connections::add('default', array(
    'type' => 'database',
    'adapter' => 'MySql',
    // ...
));

For perfomance reasons (log tables can't get huge) you should also have caching configured in your li3 app., (*3)

The plugin can be configured by passing additional options when registering the plugin., (*4)

Libraries::add('li3_bot', array(
    'host' => 'irc.freenode.net',
    'port' => 6667,
    'nick' => 'li3bot',
    'channels' => ['#li3', '#li3-core'],
    'rewriters' => [
        '(example\.(org|com))' => function($inner, $outer) {
            return str_replace($inner, '<strike>' . $inner . '</strike>', $outer);
        },
        '(.*)' => function($inner, $outer) {
            return '<a href="' . $inner . '" rel="nofollow">' . $outer . '</a>';
        }
    ]
));

Usage

Run li3 bot from within your li3 application in order to statup the bot. The bot will join the configured channels and stay there until you hit STRG+C or the script terminates otherwise., (*5)

Plugins

The bot can extended through plugins. Such plugins are required to subclass \li3_bot\extensions\command\bot\Plugin., (*6)

Following plugins are already builtin and can be found in extensions/command/bot/plugins:, (*7)

  • Feed - pulls from RSS feeds.
  • Karma - maintains a karma highscore board.
  • Logging - logs channel messages.
  • Tell - stores and retrieves socalled tells.
  • Weather - allows for retrieving the weather.

The Versions

01/06 2016

1.0.x-dev

1.0.9999999.9999999-dev http://li3.me

IRC bot for li3.

  Sources   Download

BSD-3-Clause

The Requires

 

bot irc lithium li3

01/06 2016

dev-master

9999999-dev http://li3.me

IRC bot for li3.

  Sources   Download

BSD-3-Clause

The Requires

 

bot irc lithium li3

01/06 2016

v1.0.0

1.0.0.0 http://li3.me

IRC bot for li3.

  Sources   Download

BSD-3-Clause

The Requires

 

bot irc lithium li3

05/09 2015

v1.0.0-rc3

1.0.0.0-RC3 http://li3.me

IRC bot for li3.

  Sources   Download

BSD-3-Clause

The Requires

 

bot irc lithium li3

13/08 2015

v1.0.0-rc2

1.0.0.0-RC2 http://li3.me

IRC bot for li3.

  Sources   Download

BSD-3-Clause

The Requires

 

bot irc lithium li3

13/08 2015

v1.0.0-rc1

1.0.0.0-RC1 http://li3.me

IRC bot for li3.

  Sources   Download

BSD-3-Clause

The Requires

 

bot irc lithium li3