#irc #bot #irc-client #unicorns

bottymcbottyface

一组IRC机器人

3个版本

使用旧版Rust 2015

0.1.3 2017年2月6日
0.1.2 2016年9月23日
0.1.1 2016年9月23日

#18#irc-client

Apache-2.0

7KB

bottymcbottyface

如何滥用Rust Crates的示例的一个很好的例子(看看我做了什么)。

也是一组IRC机器人

  • mouthpiece - 单次使用的irc客户端,你给它一条消息发送后它会退出。

还有更多!

安装

所有机器人都可以使用以下方式安装:

cargo install --example <bot> bottymcbottyface

例如,要安装 mouthpiece,你会输入

cargo install --example mouthpiece bottymcbottyface

用法

mouthpiece

USAGE:
    mouthpiece [OPTIONS] --nick <nick> --server <server> --channel <channel> --message <message>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -c, --channel <channel>       Set the channel to join (required)
    -m, --message <message>       The message to send (required)
    -n, --nick <nick>             Set the nick of your bot (required)
    -p, --port <port>             Set the port to connect to (defaults to 6667)
    -r, --realname <real name>    Sets your real name (appears when someone runs /whois on your bot)
    -s, --server <server>         Set the server to connect to (required)
    -u, --username <user name>    Sets your username (appears next to your conecting host when someone runs /whois on your bot)

版权所有 2016 Mark Sta Ana。

根据Apache License,版本2.0 <LICENSE-APACHE 或 https://apache.ac.cn/licenses/LICENSE-2.0> 在你的选择下许可。此文件不得复制、修改或分发,除非根据那些条款。

依赖项

~3MB
~39K SLoC