pinhook/examples/irc/plugins/test.py

8 lines
183 B
Python

import pinhook.plugin
@pinhook.plugin.register('!test')
def test(msg):
msg.logger.info('This is test log output')
return pinhook.plugin.message("{}: Test".format(msg.nick))