From 1d92f5d0d2145d666189e815137908e693655fac Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Wed, 27 Sep 2017 16:55:13 -0700 Subject: [PATCH] update example plugin with decorator --- examples/plugins/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/plugins/test.py b/examples/plugins/test.py index 58c7e86..30b0c69 100644 --- a/examples/plugins/test.py +++ b/examples/plugins/test.py @@ -1,6 +1,6 @@ import pinhook.plugin +@pinhook.plugin.register('!test') def test(**kwargs): return pinhook.plugin.message("Test") -pinhook.plugin.add_plugin('!test', test)