From cc17b9ae7244e3ec2845490372b59d77baf854f8 Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Tue, 10 Oct 2017 08:56:21 -0700 Subject: [PATCH] update to new object argument --- examples/plugins/test.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/plugins/test.py b/examples/plugins/test.py index 0e06e21..fa69e3e 100644 --- a/examples/plugins/test.py +++ b/examples/plugins/test.py @@ -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))