source: protocols/python/examples/sampleplugin.py @ 93302ef

Last change on this file since 93302ef was 93302ef, checked in by Nick Murdoch <nick@…>, at 2013-03-18T21:36:08Z

Turn bpython.c into an extension module with a dummy method from the Extending Python guide.

  • Property mode set to 100644
File size: 376 bytes
Line 
1"""sampleplugin.py - sample plugin for bitlbee-python.
2
3Place this file in bitlbee's plugin directory. bitlbee-python
4will pick it up as long as it has a .py extension.
5"""
6
7import sys
8import bpython
9print "hello, I'm a test plugin running on Python", sys.version_info
10
11# plugin name:
12name = 'moose'
13
14print bpython.register_protocol
15
16bpython.register_protocol('echo "hello"')
Note: See TracBrowser for help on using the repository browser.