{"id":21455989,"url":"https://github.com/sntran/shell2discord","last_synced_at":"2026-05-03T23:34:20.381Z","repository":{"id":45314830,"uuid":"370146852","full_name":"sntran/shell2discord","owner":"sntran","description":"Create Discord bot from command-line","archived":false,"fork":false,"pushed_at":"2021-12-21T21:37:44.000Z","size":41,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-09T03:40:01.417Z","etag":null,"topics":["bot","discord","hacktoberfest","shell"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sntran.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}},"created_at":"2021-05-23T20:04:15.000Z","updated_at":"2021-11-28T19:48:37.000Z","dependencies_parsed_at":"2022-09-21T10:03:12.575Z","dependency_job_id":null,"html_url":"https://github.com/sntran/shell2discord","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sntran/shell2discord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sntran%2Fshell2discord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sntran%2Fshell2discord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sntran%2Fshell2discord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sntran%2Fshell2discord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sntran","download_url":"https://codeload.github.com/sntran/shell2discord/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sntran%2Fshell2discord/sbom","scorecard":{"id":835173,"data":{"date":"2025-08-11","repo":{"name":"github.com/sntran/shell2discord","commit":"5b22c8801da1040d69f9776d56c9ebe6b0aa5ab5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","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":"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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/release.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/sntran/shell2discord/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/sntran/shell2discord/release.yml/main?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: The Unlicense: 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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.3.0 not signed: https://api.github.com/repos/sntran/shell2discord/releases/43882211","Warn: release artifact v0.2.0 not signed: https://api.github.com/repos/sntran/shell2discord/releases/43876720","Warn: release artifact v0.1.0 not signed: https://api.github.com/repos/sntran/shell2discord/releases/43806079","Warn: release artifact v0.3.0 does not have provenance: https://api.github.com/repos/sntran/shell2discord/releases/43882211","Warn: release artifact v0.2.0 does not have provenance: https://api.github.com/repos/sntran/shell2discord/releases/43876720","Warn: release artifact v0.1.0 does not have provenance: https://api.github.com/repos/sntran/shell2discord/releases/43806079"],"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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 4 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"}},{"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"}}]},"last_synced_at":"2025-08-23T18:49:13.211Z","repository_id":45314830,"created_at":"2025-08-23T18:49:13.211Z","updated_at":"2025-08-23T18:49:13.211Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32589260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: 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":["bot","discord","hacktoberfest","shell"],"created_at":"2024-11-23T05:14:11.476Z","updated_at":"2026-05-03T23:34:20.362Z","avatar_url":"https://github.com/sntran.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shell2discord\n\nCreate Discord splash commands from command-line.\n\n## Disclaimer\n\nThis program is written by a developer first-time using Go. Bugs and smells are expected.\nPull requests are welcome to help make the program and its author better.\n\nGolang is not the developer's language of choice, but due to the nature of this program,\nthe ability to have cross-platform static binary from Go makes it a suitable choice.\n\n## Usage\n\nGet a Discord token from Developer portal, and set `DISCORD_TOKEN` environment variable in shell.\nOptionally, set `DISCORD_GUILD` to a specific GUILD to make the commands only available to that GUILD.\nOtherwise, they are registered globally, and may take up to an hour to see changes.\n\nIf the bot is only allowed to be used in certain channels, specify their IDs in `--channels` flag,\nseparated by comma. Commands sent from outside those channels will get a \"Unauthorized\" reply.\n\n```shell\nexport DISCORD_TOKEN=*******\nexport DISCORD_GUILD=*******\nshell2discord [options] /slash_command1 'shell command' /slash_command2 'shell command2'...\noptions:\n    --token=\u003cTOKEN\u003e : Discord token\n    --guild=\u003cGUILD_ID\u003e: Discord GUILD ID to limit commands to.\n    --channels=\u003cCHANNEL_ID\u003e,\u003cCHANNEL_ID\u003e: Comma-separated list of channel IDs in which the bot can be used.\n    --export-vars=\u003cVAR1\u003e,\u003cVAR2\u003e: Comma-separated list of environment variables to pass to the shell command.\n    --shell=\u003cSHELL_BINARY_NAME\u003e: Name of the shell binary to execute command with via the -c flag. Defaults to 'sh'.\n```\n\n## Shell commands\n\nThe shell command argument for the slash command should be written as if it would be run in a normal shell,\nexcept that it must be wrapped in a pair single quotes.\n\nThat is:\n\n- Variables are enclosed in `${}`. They become required options.\n- Optional variable with default value as `${variable-default}`.\n- `default` can be an empty string, and the variable is still optional.\n- Description is written as the first comment line.\n\n## Examples\n\n```shell\n# Command with no param.\nshell2discord /hello 'echo \"World\"'\n# Command with description\nshell2discord /hello '# Command description here \\\n    echo \"World\"'\n# Optional param `word` with empty default value.\nshell2discord /hello 'echo \"Hello ${word-}\"'\n# Optional param `word` with default value of \"World\".\nshell2discord /hello 'echo \"Hello ${word-World}\"'\n# Command with required params.\nshell2discord /mirror 'curl \"${url}\" \u003e \"${outfile}\"'\n# Command with allowed environment variables.\nshell2discord --export-vars=GOOGLE_MAPS_API_KEY \\\n    /geocode 'curl \"https://maps.googleapis.com/maps/api/geocode/json?latlng=${latlng}\u0026key=$GOOGLE_MAPS_API_KEY\"'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsntran%2Fshell2discord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsntran%2Fshell2discord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsntran%2Fshell2discord/lists"}