wildphp / module-ircconnection
此包已被废弃,不再维护。未建议替代包。
WildPHP 的 IRC 连接提供者
v2.1.0
2015-12-20 16:23 UTC
Requires
This package is not auto-updated.
Last update: 2017-08-27 17:13:21 UTC
README
本模块为框架提供与 IRC 网络的连接。
系统要求
如果您的设置可以运行主机器人,则也可以运行此模块。您可能需要取消阻止连接到服务器的端口(最可能是 6667)。
安装
为了安装此模块,我们将使用 composer
composer require wildphp/module-ircconnection
这将安装模块所需的所有文件。为了激活模块,将以下行添加到您的 main.modules
文件中
WildPHP\CoreModules\Connection\Connection
机器人在下一次启动时将运行该模块。
配置
在您的 config.neon
文件中添加和调整以下行(如果尚未添加)
# The server to connect to. Do not append port numbers.
server: irc.freenode.org
# The port number to use.
port: 6667
# Use a secure (SSL) connection?
secure: false
# The nickname to use when connecting.
# Every character allowed, except spaces, newlines and the at (@) symbol.
nick: WildPHP-Bot
# The ident to use for the bot.
name: WildPHP-Bot
许可
本模块遵循 GNU 通用公共许可证,版本 3。请参阅 LICENSE
文件以阅读。