update to new object argument
parent
70b416b5ae
commit
cc17b9ae72
|
@ -1,7 +1,6 @@
|
|||
import pinhook.plugin
|
||||
|
||||
@pinhook.plugin.register('!test')
|
||||
def test(**kwargs):
|
||||
nick = kwargs['nick']
|
||||
return pinhook.plugin.message("{}: Test".format(nick))
|
||||
def test(msg):
|
||||
return pinhook.plugin.message("{}: Test".format(msg.nick))
|
||||
|
||||
|
|
Loading…
Reference in New Issue