rgb-cln/tests/plugins/custommsg_b.py

17 lines
341 B
Python
Raw Normal View History

#!/usr/bin/env python3
from pyln.client import Plugin
plugin = Plugin()
@plugin.hook('custommsg')
def on_custommsg(peer_id, payload, plugin, message=None, **kwargs):
2021-01-27 11:56:29 +00:00
plugin.log("Got custommessage_b {msg} from peer {peer_id}".format(
msg=payload,
peer_id=peer_id
))
return {'result': 'continue'}
plugin.run()