|
2 months ago | |
---|---|---|
pipebot | 3 months ago | |
.gitignore | 3 months ago | |
1_peter_rabbit.txt | 2 months ago | |
README.md | 3 months ago | |
ircbot.ipynb | 2 months ago | |
ircpipebot.py | 3 months ago | |
parody-bot.ipynb | 2 months ago | |
reversebot.py | 3 months ago | |
simplebot.py | 3 months ago |
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
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