update example plugin with decorator
parent
87332c1ac4
commit
1d92f5d0d2
|
@ -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)
|
|
||||||
|
|
Loading…
Reference in New Issue