Skip to content

Instantly share code, notes, and snippets.

@rch850 rch850/irc.sh
Created Sep 27, 2013

Embed
What would you like to do?
シェルスクリプトからIRCで発言
#!/bin/sh
nc -w 10 $IRC_SERVER 6667 << EOF &>/dev/null
PASS $IRC_PASS
NICK $IRC_NICK
USER $IRC_NICK 8 * : $IRC_NICK
JOIN $IRC_CH
PRIVMSG $IRC_CH : $1
QUIT
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.