pinhook/examples/plugins/test.py

8 lines
163 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-09-27 21:59:46 +00:00
def test(**kwargs):
2017-09-28 13:33:28 +00:00
nick = kwargs['nick']
return pinhook.plugin.message("{}: Test".format(nick))
2017-09-27 21:59:46 +00:00