pinhook/examples/plugins/test.py

7 lines
136 B
Python

import pinhook.plugin
@pinhook.plugin.register('!test')
def test(msg):
return pinhook.plugin.message("{}: Test".format(msg.nick))