(peer_id, payload, plugin, message=None, **kwargs)
| 6 | |
| 7 | @plugin.hook('custommsg') |
| 8 | def on_custommsg(peer_id, payload, plugin, message=None, **kwargs): |
| 9 | plugin.log("Got message {}".format(int(payload[:4], 16))) |
| 10 | return {'result': 'continue'} |
| 11 | |
| 12 | |
| 13 | plugin.run() |