pinhook/examples/plugins/test.py

8 lines
183 B
Python
Raw Normal View History

2017-09-27 21:59:46 +00:00
import pinhook.plugin
2017-09-27 23:55:13 +00:00
@pinhook.plugin.register('!test')
2017-10-10 15:56:21 +00:00
def test(msg):
msg.logger.info('This is test log output')
2017-10-10 15:56:21 +00:00
return pinhook.plugin.message("{}: Test".format(msg.nick))
2017-09-27 21:59:46 +00:00