mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 01:24:42 +01:00
15 lines
150 B
Python
Executable File
15 lines
150 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from pyln.client import Plugin
|
|
import os
|
|
|
|
plugin = Plugin()
|
|
|
|
|
|
@plugin.method("die")
|
|
def die():
|
|
os._exit(1)
|
|
|
|
|
|
plugin.run()
|