Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
Michael Murtaugh 368f0dccbb updated parody bot 4 anni fa
pipebot new pipebot things 4 anni fa
.gitignore new pipebot things 4 anni fa
1_peter_rabbit.txt updated parody bot 4 anni fa
README.md new pipebot things 4 anni fa
ircbot.ipynb simple irc bot notebook 4 anni fa
ircpipebot.py gulp 4 anni fa
parody-bot.ipynb updated parody bot 4 anni fa
reversebot.py gulp 4 anni fa
simplebot.py gulp 4 anni fa

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