多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Irker IRC Gateway > 原文:[https://docs.gitlab.com/ee/user/project/integrations/irker.html](https://docs.gitlab.com/ee/user/project/integrations/irker.html) * [Needed setup](#needed-setup) * [Complete these steps in GitLab](#complete-these-steps-in-gitlab) * [Note on Irker recipients](#note-on-irker-recipients) # Irker IRC Gateway[](#irker-irc-gateway "Permalink") GitLab 提供了一种将更新消息推送到 Irker 服务器的方法. 配置后,推送到项目将触发服务将数据直接发送到 Irker 服务器. 有关更多信息,请参见项目主页: [https](https://gitlab.com/esr/irker) : [//gitlab.com/esr/irker](https://gitlab.com/esr/irker) ## Needed setup[](#needed-setup "Permalink") 您首先需要一个 Irker 守护程序. 您可以从[https://gitlab.com/esr/irker 的](https://gitlab.com/esr/irker)存储库中下载 Irker 代码: ``` git clone https://gitlab.com/esr/irker.git ``` 下载代码后,您可以运行名为`irkerd`的 Python 脚本. 该脚本是网关脚本,它既充当 IRC 客户端(用于显然将消息发送到 IRC 服务器),又充当 TCP 服务器(用于从 GitLab 服务接收消息). 如果 Irker 服务器在同一台计算机上运行,​​则操作完成. 如果没有,您将需要遵循下一部分的第一步. ## Complete these steps in GitLab[](#complete-these-steps-in-gitlab "Permalink") 1. 导航到您要为通知配置的项目. 2. 导航到" [集成"页面](overview.html#accessing-integrations) 3. Click “Irker”. 4. 确保启用了**活动**切换. 5. 在网页的" `Server host`字段中输入`irkerd`运行的服务器主机地址(默认为`localhost` ). 6. 在网页的" `Server port`字段中输入`irkerd`的服务器端口(例如,默认为 6659). 7. 可选:如果设置了`Default IRC URI` ,则其格式必须为`irc[s]://domain.name`并且将`irc[s]://domain.name`在用户提供的每个通道(不是完整 URI)之前. 8. 指定收件人(例如,#channel1,user1 等) 9. 保存或选择单击"测试设置". ## Note on Irker recipients[](#note-on-irker-recipients "Permalink") Irker 接受形式的信道名称`chan`和`#chan`为,既`#chan`通道. 如果要在查询中发送消息,则需要在频道名称后添加`,isnick` ,格式为: `Aorimn,isnick` . 在后一种情况下, `Aorimn`被视为昵称,而不再被视为频道名称. Irker 也可以加入受密码保护的频道. 用户需要在 chan 名称后附加`?key=thesecretpassword` . 使用此功能时,请记住**不要**在频道名称前加上`#`号; 否则,irker 会加入一个字面名为`#chan?key=password`的通道,此后将通过`/whois` IRC 命令(取决于 IRC 服务器配置)泄漏该通道密钥. 这是由于长期存在的虫虫.