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