pinhook/examples/plugins/test.py

7 lines
136 B
Python
Raw Permalink 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):
return pinhook.plugin.message("{}: Test".format(msg.nick))
2017-09-27 21:59:46 +00:00