{"id":13666688,"url":"https://github.com/lnbits/discordbot","last_synced_at":"2025-03-02T20:28:49.168Z","repository":{"id":73758089,"uuid":"601563456","full_name":"lnbits/discordbot","owner":"lnbits","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-01T09:32:45.000Z","size":114,"stargazers_count":3,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-11T01:35:18.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnbits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-14T10:36:13.000Z","updated_at":"2024-06-20T07:19:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"6cfe89ea-e4d4-44eb-8519-a73710a5aae7","html_url":"https://github.com/lnbits/discordbot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fdiscordbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fdiscordbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fdiscordbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fdiscordbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnbits","download_url":"https://codeload.github.com/lnbits/discordbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241567268,"owners_count":19983466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T06:01:23.646Z","updated_at":"2025-03-02T20:28:49.148Z","avatar_url":"https://github.com/lnbits.png","language":"Python","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Discord Bot\n\n## Provide LNbits wallets for all your Discord users\n\n_This extension depends on the LNbits [User Manager](https://github.com/lnbits/usermanager/blob/main/README.md)_\n\nThis extension can be used to run a discord bot which provides lightning functionalities to discord users.\nIt can be run through the extension or be self-hosted.\n\nThe intended usage of this extension is to connect it to a specifically designed [Discord Bot](https://github.com/chrislennon/lnbits-discord-bot) leveraging LNbits as a community based lightning node.\n\n## Setup\n\n### Running on lnbits\n\nInstall this extension onto your lnbits node and create a bot configuration.\nMake sure the `standalone` option is not checked.\n\nIf your token is valid you should see your bot go online.\n\n### Self hosted\n\nInstall this extension onto your lnbits node and create a bot configuration.\nMake sure the `standalone` option is checked.\n\nOnce you have done that, clone this repo.\n\n```shell\ngit clone https://github.com/jackstar12/discordbot.git\n```\n\nYou can get your environment variables by expanding the `Setup` section on the extension page of your lnbits instance.\nPaste them into an `.env` file or set them manually.\n\nNow you should be able to install and run.\nIf you don't have poetry installed follow the instructions [here](https://python-poetry.org/docs/#installation)\n\n```shell\npoetry install\npoetry run standalone\n```\n\nAfter waiting for the bot to start you can refresh the extension page. The profile picture and name of\nyour bot should show up accordingly.\n\n## Usage\n\nThis bot will allow users to interact with it in the following ways [full command list](https://github.com/chrislennon/lnbits-discord-bot#commands):\n\n`/create` Will create a wallet for the Discord user\n\n- (currently limiting 1 Discord user == 1 LNbits user == 1 user wallet)\n\n![create](https://imgur.com/CWdDusE.png)\n\n`/balance` Will show the balance of the users wallet.\n\n![balance](https://imgur.com/tKeReCp.png)\n\n`/tip @user [amount]` Will sent money from one user to another\n\n- If the recieving user does not have a wallet, one will be created for them\n- The receiving user will receive a direct message from the bot with a link to their wallet\n\n![tip](https://imgur.com/K3tnChK.png)\n\n`/payme [amount] [description]` Will open an invoice that can be paid by any user\n\n![payme](https://imgur.com/dFvAqL3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbits%2Fdiscordbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnbits%2Fdiscordbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbits%2Fdiscordbot/lists"}