pyircbot/pyircbot/modules/Test.py

20 lines
428 B
Python
Raw Normal View History

#!/usr/bin/env python
"""
.. module:: Test
:synopsis: For testing code
.. moduleauthor:: Dave Pedu <dave@davepedu.com>
"""
2017-01-01 14:59:01 -08:00
from pyircbot.modulebase import ModuleBase, ModuleHook
class Test(ModuleBase):
def __init__(self, bot, moduleName):
ModuleBase.__init__(self, bot, moduleName)
2017-01-01 14:59:01 -08:00
self.hooks = [ModuleHook("PRIVMSG", self.dotest)]
def dotest(self, args):
2017-01-01 14:59:01 -08:00
print("DOTEST(%s)" % (args,))