update to new object argument

pull/1/head
Mallory Hancock 2017-10-10 08:56:21 -07:00
parent 70b416b5ae
commit cc17b9ae72
1 changed files with 2 additions and 3 deletions

View File

@ -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))