Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Michael Murtaugh 368f0dccbb | 4 anos atrás | |
---|---|---|
pipebot | 4 anos atrás | |
.gitignore | 4 anos atrás | |
1_peter_rabbit.txt | 4 anos atrás | |
README.md | 4 anos atrás | |
ircbot.ipynb | 4 anos atrás | |
ircpipebot.py | 4 anos atrás | |
parody-bot.ipynb | 4 anos atrás | |
reversebot.py | 4 anos atrás | |
simplebot.py | 4 anos atrás |
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