{"id":13467145,"url":"https://github.com/tandemdude/hikari-lightbulb","last_synced_at":"2026-04-29T10:10:03.578Z","repository":{"id":37775974,"uuid":"316276732","full_name":"tandemdude/hikari-lightbulb","owner":"tandemdude","description":"Simple, elegant and powerful command handler for the Python Discord library, Hikari.","archived":false,"fork":false,"pushed_at":"2026-04-02T23:55:10.000Z","size":8795,"stargazers_count":219,"open_issues_count":8,"forks_count":36,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-05T20:02:23.905Z","etag":null,"topics":["api-wrapper","bot","command-handler","discord","discord-api","discord-bot","hikari","python","python-3"],"latest_commit_sha":null,"homepage":"https://hikari-lightbulb.readthedocs.io/en/latest/","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/tandemdude.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["tandemdude"]}},"created_at":"2020-11-26T15:56:37.000Z","updated_at":"2026-03-24T16:02:12.000Z","dependencies_parsed_at":"2023-12-28T00:59:41.646Z","dependency_job_id":"db33ade5-5682-4334-9313-b34ffdc14bae","html_url":"https://github.com/tandemdude/hikari-lightbulb","commit_stats":{"total_commits":1220,"total_committers":36,"mean_commits":"33.888888888888886","dds":"0.24180327868852458","last_synced_commit":"6bcac8709fb2d5868cd7a7774acd734afa43067a"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"purl":"pkg:github/tandemdude/hikari-lightbulb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tandemdude%2Fhikari-lightbulb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tandemdude%2Fhikari-lightbulb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tandemdude%2Fhikari-lightbulb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tandemdude%2Fhikari-lightbulb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tandemdude","download_url":"https://codeload.github.com/tandemdude/hikari-lightbulb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tandemdude%2Fhikari-lightbulb/sbom","scorecard":{"id":867501,"data":{"date":"2025-08-11","repo":{"name":"github.com/tandemdude/hikari-lightbulb","commit":"1c8efa94a02e00225ae187648294d90e85041f8d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.9,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 3/19 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy.yml:1","Warn: no topLevel permission defined: .github/workflows/fragment_check.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/fragment_check.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/tandemdude/hikari-lightbulb/fragment_check.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:66","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:84","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:43","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:48","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:43","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:58","Info:   0 out of  11 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   7 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T03:05:22.813Z","repository_id":37775974,"created_at":"2025-08-24T03:05:22.813Z","updated_at":"2025-08-24T03:05:22.813Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32420567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api-wrapper","bot","command-handler","discord","discord-api","discord-bot","hikari","python","python-3"],"created_at":"2024-07-31T15:00:53.553Z","updated_at":"2026-04-29T10:10:03.563Z","avatar_url":"https://github.com/tandemdude.png","language":"Python","funding_links":["https://github.com/sponsors/tandemdude"],"categories":["Misc Resources"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cpicture\u003e\n        \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"/docs/source/_static/lightbulb_logo_dark.svg\"\u003e\n        \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"/docs/source/_static/lightbulb_logo_light.svg\"\u003e\n        \u003cimg alt=\"Hikari-Lightbulb logo\" src=\"https://raw.githubusercontent.com/tandemdude/hikari-lightbulb/refs/heads/master/docs/source/_static/lightbulb_logo_light.svg\" width=\"50%\"\u003e\n    \u003c/picture\u003e\n\u003c/p\u003e\n\n[![PyPI](https://img.shields.io/pypi/v/hikari-lightbulb)](https://pypi.org/project/hikari-lightbulb)\n\n# Overview\nLightbulb is designed to be an easy-to-use command handler library that integrates with the\nDiscord API wrapper library for Python, Hikari.\n\nThis library aims to make it simple for you to make your own Discord bots and provide\nall the utilities and functions you need to help make this job easier.\n\n## Installation\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install Lightbulb.\n\n```bash\npip install hikari-lightbulb\n```\n\n## Usage\n```python\n# Import the libraries\nimport hikari\nimport lightbulb\n\n# Create a GatewayBot instance\nbot = hikari.GatewayBot(\"your_token_here\")\nclient = lightbulb.client_from_app(bot)\n# Ensure the client starts once the bot is run\nbot.subscribe(hikari.StartingEvent, client.start)\n\n# Register the command with the client\n@client.register()\nclass Ping(\n    # Command type - builtins include SlashCommand, UserCommand, and MessageCommand\n    lightbulb.SlashCommand,\n    # Command declaration parameters\n    name=\"ping\",\n    description=\"checks the bot is alive\",\n):\n    # Define the command's invocation method. This method must take the context as the first\n    # argument (excluding self) which contains information about the command invocation.\n    @lightbulb.invoke\n    async def invoke(self, ctx: lightbulb.Context) -\u003e None:\n        # Send a message to the channel the command was used in\n        await ctx.respond(\"Pong!\")\n\n# Run the bot\n# Note that this is blocking meaning no code after this line will run\n# until the bot is shut off\nbot.run()\n```\n\n## Sponsors\n\nI would like to give a special thanks to my sponsors for providing the funding to continue developing and improving\nthis resource over the past 5+ years.\n\n- [nulldomain](https://github.com/null-domain)\n- [Invite Tracker](https://invite-tracker.com)\n- [Forbidden-A](https://github.com/Forbidden-A)\n\n## Large Bots\n\nThe following large bots are all using Lightbulb in production:\n\n\u003ctable\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://invite-tracker.com\"\u003e\u003cimg src=\"https://invite-tracker.com/og/invitetracker_logo.png\" width=\"100px;\" height=\"100px;\" alt=\"Invite Tracker\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eInvite Tracker\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003c/td\u003e\n            \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://nmarkov.xyz\"\u003e\u003cimg src=\"https://nmarkov.xyz/logo.png\" width=\"100px;\" height=\"100px;\" alt=\"nMarkov\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003enMarkov\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\nDo you own a large bot using Lightbulb? Mention `@thomm.o` on [Discord](https://discord.gg/hikari) or submit a pull request to add your bot to the list!\n\n## Show your Support\n\nWe love people's support in growing and improving. Be sure to leave a ⭐️ if you like the project, and I would gladly welcome\nany contributions if you're interested!\n\n## Links\n- **License:** [MIT](https://choosealicense.com/licenses/mit/)\n- **Repository:** [GitHub](https://github.com/tandemdude/hikari-lightbulb)\n- **Documentation:** [ReadTheDocs](https://hikari-lightbulb.readthedocs.io/en/latest/)\n\n## IDE Plugin\n\nLightbulb now has a plugin for IntelliJ-based IDEs (IntelliJ, Pycharm, etc) to help improve the developer experience \nby providing autocompletion and type checking not yet supported by other tools. More features such as command \nboilerplate generation and further code inspections are planned.\n\nYou can install the plugin from the Jetbrains Marketplace within your IDE. View the plugin \n[here](https://plugins.jetbrains.com/plugin/24669-hikari-lightbulb-support).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftandemdude%2Fhikari-lightbulb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftandemdude%2Fhikari-lightbulb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftandemdude%2Fhikari-lightbulb/lists"}