Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
Michael Murtaugh 368f0dccbb | 3 lat temu | |
---|---|---|
pipebot | 4 lat temu | |
.gitignore | 4 lat temu | |
1_peter_rabbit.txt | 3 lat temu | |
README.md | 4 lat temu | |
ircbot.ipynb | 4 lat temu | |
ircpipebot.py | 4 lat temu | |
parody-bot.ipynb | 3 lat temu | |
reversebot.py | 4 lat temu | |
simplebot.py | 4 lat temu |
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