KO
|
EN
gitlite โ search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
pyrc
โ 18
Open GitHub โ
a lightweight Python IRC bot library
Download README (.md)
Explore Similar Repositories
rison
:
Rison encoder and decoder for the Jackson streaming JSON processor
vim-diff-toggle
:
๐ Vim plugin to speed up editing diff files
js2e
:
Tutorial files for JavaScript & jQuery: The Missing Manaul
shoebill-api
:
Shoebill-api is one main part of the shoebill project.
chip-8
:
A CHIP-8 emulator in Go.
// repository documentation
Was this content helpful?
โ 0
(0 ratings)
Select Rating:
โ
โ
โ
โ
โ
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
pyrc
?
Download (.md)
# pyrc Slim, concise IRC bot library. Also cute. ## Installation ```bash $ pip install pyrc ``` ## Usage ```python import pyrc import pyrc.utils.hooks as hooks class HiBot(pyrc.Bot): @hooks.command() def sayhi(self, channel, sender): self.message(channel, "hi!") if __name__ == '__main__': bot = HiBot('irc.freenode.net', channels = ['#your_channel']) bot.connect() ``` Then on IRC, after the bot logs in: ``` <davidpeter> HiBot, sayhi <HiBot> hi! ``` ## TODO * Modularize library better. * Make syntax more like Flask.