update plugin example
parent
1d92f5d0d2
commit
7945306d84
|
@ -2,5 +2,6 @@ import pinhook.plugin
|
||||||
|
|
||||||
@pinhook.plugin.register('!test')
|
@pinhook.plugin.register('!test')
|
||||||
def test(**kwargs):
|
def test(**kwargs):
|
||||||
return pinhook.plugin.message("Test")
|
nick = kwargs['nick']
|
||||||
|
return pinhook.plugin.message("{}: Test".format(nick))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue