SedBot: Difference between revisions

From SoylentNews
Jump to navigation Jump to search
(Created page with "Running sedbot: TERMINAL 1: <pre> sudo apt-get install ii gawk mkdir ~/irc wget https://raw.githubusercontent.com/FoobarBazbot/sedbot/master/sedbot.awk -O ~/irc/sedbot.awk #...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
mkdir ~/irc
mkdir ~/irc
wget https://raw.githubusercontent.com/FoobarBazbot/sedbot/master/sedbot.awk -O ~/irc/sedbot.awk
wget https://raw.githubusercontent.com/FoobarBazbot/sedbot/master/sedbot.awk -O ~/irc/sedbot.awk
# on line 11 of the awk file, replace "/sedbotirc/irc.sylnt.us/#soylent/in" with "~/irc/irc.sylnt.us/#soylent/in"
# comment out or delete line 11 of the awk file
sed -i 11d ~/irc/sedbot.awk
ii -s irc.sylnt.us -p 6667 -n SedBot2 -f SedBot2
ii -s irc.sylnt.us -p 6667 -n SedBot2 -f SedBot2
</pre>
</pre>
Line 15: Line 16:
tail -Fn1 ~/irc/irc.sylnt.us/#soylent/out | ~/irc/sedbot.awk outfile=~/irc/irc.sylnt.us/#soylent/in
tail -Fn1 ~/irc/irc.sylnt.us/#soylent/out | ~/irc/sedbot.awk outfile=~/irc/irc.sylnt.us/#soylent/in
</pre>
</pre>
[[Category:IRC]]

Latest revision as of 11:00, 31 July 2014

Running sedbot:

TERMINAL 1:

sudo apt-get install ii gawk
mkdir ~/irc
wget https://raw.githubusercontent.com/FoobarBazbot/sedbot/master/sedbot.awk -O ~/irc/sedbot.awk
# comment out or delete line 11 of the awk file
sed -i 11d ~/irc/sedbot.awk
ii -s irc.sylnt.us -p 6667 -n SedBot2 -f SedBot2

TERMINAL 2:

echo "/j #soylent" > ~/irc/irc.sylnt.us/in
tail -Fn1 ~/irc/irc.sylnt.us/#soylent/out | ~/irc/sedbot.awk outfile=~/irc/irc.sylnt.us/#soylent/in