Add documentation
This commit is contained in:
21
samples/config.js
Normal file
21
samples/config.js
Normal 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"
|
||||
}
|
||||
}
|
||||
13
samples/xmpp-lightning-antispam.service
Normal file
13
samples/xmpp-lightning-antispam.service
Normal 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
|
||||
Reference in New Issue
Block a user