pinhook/examples/plugins/test.py

8 lines
163 B
Python

import pinhook.plugin
@pinhook.plugin.register('!test')
def test(**kwargs):
nick = kwargs['nick']
return pinhook.plugin.message("{}: Test".format(nick))