enebe-nb/phergie-irc-plugin-react-tell 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

enebe-nb/phergie-irc-plugin-react-tell

最新稳定版本:1.0.1

Composer 安装命令:

composer require enebe-nb/phergie-irc-plugin-react-tell

包简介

Phergie plugin for send messages to users next time they are seen.

README 文档

README

Phergie plugin for send messages to users next time they are seen.

Build Status

Install

The recommended method of installation is through composer.

{
    "require": {
        "enebe-nb/phergie-irc-plugin-react-tell": "^1.0"
    }
}

See Phergie documentation for more information on installing plugins.

Configuration

return array(
    'plugins' => array(
        new \EnebeNb\Phergie\Plugin\Tell\Plugin(array(
            // Send a \PDO object to use that database,
            // or leave unsetted to store the messages into an array.
            'database' => new \PDO($mydsn, $myusername, $mypassword),

            // change the default command text from 'tell' to anything
            'custom-commands' => 'mycustomcommand',
            // or pick any number of commands
            'custom-commands' => array('tell', 'ask', 'remind'),
            // also works with comma-delimited strings
            'custom-commands' => 'tell,ask,remind',

            // create database table
            'create-database' => true,

            // set a maximum number of messages to be stored for an user
            // Default: 10
            'max-messages' => 20,
            // or remove the maximum
            'max-messages' => false,
        )),

        // phergie/phergie-irc-plugin-react-command
        // is required to listen for commands
        new \Phergie\Irc\Plugin\React\Command\Plugin(),
    ),
);

See phergie/phergie-irc-plugin-react-command for more information on Command Plugin.

Databases

This plugin is tested on following databases:

  • MySQL (it sets SQL_MODE to ANSI_QUOTES on construct)
  • PostgreSQL
  • SQLITE

Tests

To run the unit test suite:

curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit

License

Released under the BSD License. See LICENSE.

统计信息

  • 总下载量: 48
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2015-08-24