You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Michael Murtaugh 368f0dccbb updated parody bot преди 4 години
pipebot new pipebot things преди 4 години
.gitignore new pipebot things преди 4 години
1_peter_rabbit.txt updated parody bot преди 4 години
README.md new pipebot things преди 4 години
ircbot.ipynb simple irc bot notebook преди 4 години
ircpipebot.py gulp преди 4 години
parody-bot.ipynb updated parody bot преди 4 години
reversebot.py gulp преди 4 години
simplebot.py gulp преди 4 години

README.md

A small selection of IRC bots

simplebot.py is a really minimal bot (meant as a proof of concept and starting point) written in standard library python 3. The source is from IRC Hacks, Paul Mutton, 2004.

ircpipebot and reversebot make use of the irc module, installable with:

pip3 install irc

Pipebot

Testing

python -u ircpipebot.py | python -u pipebot/echo_split.py

Closing the loop

mkfifo pipe.fifo
cat pipe.fifo | python -u ircpipebot.py > pipe.fifo


cat pipe.fifo | python -u ircpipebot.py | python -u pipebot/echo_split.py > pipe.fifo

or

cat pipe.fifo | \
python -u ircpipebot.py | \
python -u pipebot/echo_split.py \
> pipe.fifo