使用irc多端命令行聊天工具irssi Using Internet Relay Chat CLI Tool irssi
install irssi on MacOS
brew install irssi
using irssi
1. irssi start and end [Regular Operation]
$ irssi
// !!!Your nickname is automatically generated.
[(status)] /exit
2. connect and disconnect irc server [Regular Operation]
- The follow IRC_SERVER_NAME is one of any irc server like irc.mozilla.org.
$ irssi [(status)] /connect IRC_SERVER_NAME [(status)] /disconnect [(status)] /exit
3. create new user with password in an irc server [One-time Operation]
- The follow IRC_SERVER_NAME is one of any irc server like irc.mozilla.org.
- The follow PASSOWRD is your desired password.
- The follow YOUR_EMAIL is your existed email.
$ irssi [(status)] /connect IRC_SERVER_NAME [(status)] /msg NickServ REGISTER PASSWORD YOUR_EMAIL // receive the follow command in an email from IRC_SERVER_NAME. The follow MUSTER_CODE is in the email. [(status)] /msg NickServ IDENTIFY MUSTER_CODE [(status)] /exit
4. connect a channel without password in an irc server [Regular Operation]
- The follow IRC_SERVER_NAME is one of any irc server like irc.mozilla.org.
- The follow YOUR_NAME is your desired nickname.
- The follow YOUR_CHANNEL is your desired channel, like qa on the server irc.mozilla.org.
$ irssi [(status)] /connect IRC_SERVER_NAME [(status)] /nick YOUR_NAME [(status)] /join #YOUR_CHANNEL [#YOUR_CHANNEL] /leave [(status)] /exit
5. creat your own channel without password in an irc server ‘irc.mozilla.org’ [One-time Operation]
- The follow MY_CHANNEL_NAME is your own desired channel name.
- The follow ADMIN_PASSWORD is your own channel password.
- The follow CHANNEL_TOPIC is your channel topic.
$ irssi [(status)] /connect irc.mozilla.org [(status)] /join #MY_CHANNEL_NAME [#MY_CHANNEL_NAME] /msg ChanServ REGISTER #MY_CHANNEL_NAME ADMIN_PASSWORD CHANNEL_TOPIC [#MY_CHANNEL_NAME] /leave #MY_CHANNEL_NAME [ChanServ] /q [(status)] /exit
6. setting your private channel with password [One-time Operation]
- The follow MY_CHANNEL_NAME is your own existed channel name.
- The follow MY_CHANNEL_PASSWORD is your shared channel password.
$ irssi
[(status)] /connect irc.mozilla.org
[(status)] /join #MY_CHANNEL_NAME
[#MY_CHANNEL_NAME] /mode #MY_CHANNEL_NAME +k MY_CHANNEL_PASSWORD
[#MY_CHANNEL_NAME] /mode #MY_CHANNEL_NAME +s
[#MY_CHANNEL_NAME] /leave #MY_CHANNEL_NAME
[(status)] /exit
7. connect your private channel with password [Regular Operation]
- The follow MY_CHANNEL_NAME is your own existed channel name.
- The follow MY_CHANNEL_PASSWORD is your shared channel password.
$ irssi
[(status)] /connect irc.mozilla.org
[(status)] /join #MY_CHANNEL_NAME MY_CHANNEL_PASSWORD
[#MY_CHANNEL_NAME]
8. connect my public chat channel ‘iotoi’ without password [Example Operation]
$ irssi
[(status)] /connect irc.mozilla.org
[(status)] /join #iotoi
[#iotoi] Hallo Guduao, My Name is ....