Add documentation

This commit is contained in:
2024-02-12 13:56:52 +01:00
parent 867bdcf978
commit 2c4724638a
5 changed files with 72 additions and 2 deletions

21
samples/config.js Normal file
View File

@@ -0,0 +1,21 @@
export default {
xmpp: {
service: "kosmos.org",
resource: "lightning-antispam",
username: "botka",
password: "123456789",
nick: "botka",
rooms: [
"kosmos-random@kosmos.chat",
"lightningnetwork@kosmos.chat"
]
},
amounts: {
voice: 1000 // sats
},
lndhub: {
endpoint: "https://lndhub.kosmos.org",
username: "123456789",
password: "123456789"
}
}

View File

@@ -0,0 +1,13 @@
[Unit]
Description=XMPP Lightning Antispam bot
After=network.target
[Service]
Type=simple
User=deploy
WorkingDirectory=/opt/xmpp-lightning-antispam
ExecStart=/usr/bin/node index.js
Restart=on-failure
[Install]
WantedBy=multi-user.target