lntip is a bot that allows you to tip Discord users with Bitcoin through the Lightning Network
Join this Discord server to test it out!
Shows help message
Deposit sats in your account.
Send a tip to a user.
You can also reward users by reacting with a lntip<amount> emoji on their messages.
Check your balance.
Withdraw sats to your wallet.
There is a fixed fee of 10 sats per withdrawal.
There are two ways to use this bot, either self-hosted or using the hosted version.
Simply invite the bot to your server using this URL.
You need:
- Docker & docker-compose
- A Bitcoin node (Bitcoin Core recommended)
- An LND node (With Tor recommended)
Here is a docker-compose.yml sample, edit it to your needs.
version: "3.1"
services:
db:
container_name: lntipdb
image: mariadb
volumes:
- ./data:/var/lib/mysql
environment:
- MARIADB_ROOT_PASSWORD=your_password
ports: # optional
- "127.0.0.1:3306:3306"
networks:
- db
lntip:
container_name: lntip
build:
context: lntip
dockerfile: Dockerfile
volumes:
- ./config.yml:/lntip/config.yml
- /path/to/tls.cert:/lntip/tls.cert
- /path/to/macaroons/mainnet:/lntip/macaroons
networks:
- db
- lnd
networks:
db:
lnd:
external: true
Then you must configure a config.yml. Here is a sample:
bot:
token: your.discord.token
database:
name: lntip
host: db
port: 3306
user: root
password: your_password
lnd:
host: lnd
tls_path: /lntip/tls.cert
macaroon_path: /lntip/macaroons
network: mainnet
Start the database and the bot:
$ docker-compose up -d --build
Initialize the database:
# Create database
echo 'CREATE DATABASE lntip' | docker exec -it lntipdb mysql -uroot -pyour_pasword
# Run SQL migrations
docker run -v $PWD/migrations:/migrations --net=host migrate/migrate -path=/migrations/ -database "mysql://root:your_password@(localhost:3306)/lntip" up
🎉
👤 Aurèle Oulès
- Github: @aureleoules
- LinkedIn: @https://www.linkedin.com/in/aureleoules/