Skip to content

sarenji/pyrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyrc

Slim, concise IRC bot library. Also cute.

Installation

$ pip install pyrc

Usage

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.

About

a lightweight Python IRC bot library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages