Odin is a Discord tipping bot. It allows users to deposit and withdraw Bitcoin via the lightning network. Users can tip each other with the Bitcoin they deposit or receive, and can later withdraw to an external lightning wallet.
- Tip users Bitcoin!
- Withdraw via lightning invoice
- Deposit via lightning invoice
- Decode lightning payment requests
Clone the repository:
git clone [email protected]:hugomd/odin.gitInstall dependencies:
npm iModify database configuration in src/config/index.js, or set NODE_ENV=production and set the Postgres environment variables defined below.
Create the database and run migrations:
npx sequelize-cli db:create
npx sequelize-cli db:migrateStart the bot:
npm startDB_CONNECTION_URL: eg:postgres://user:[email protected]:5432/dbname
LND_IPLND_PORTMACAROON_BASE64
lncli bakemacaroon invoices:read invoices:write message:read message:write offchain:read offchain:write --save_to odin.macaroonConvert it to base64:
xxd -ps -u -c 1000 odin.macaroonMIT, see LICENSE.
