update example plugin with decorator

pull/1/head
Mallory Hancock 2017-09-27 16:55:13 -07:00
parent 87332c1ac4
commit 1d92f5d0d2
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import pinhook.plugin import pinhook.plugin
@pinhook.plugin.register('!test')
def test(**kwargs): def test(**kwargs):
return pinhook.plugin.message("Test") return pinhook.plugin.message("Test")
pinhook.plugin.add_plugin('!test', test)