{"id":20151864,"url":"https://github.com/lehuyh/slasho","last_synced_at":"2025-10-14T03:41:41.689Z","repository":{"id":46098152,"uuid":"403789130","full_name":"LehuyH/slasho","owner":"LehuyH","description":"A lightweight framework to build modern discord.js bots with as little boilerplate as possible 🤖","archived":false,"fork":false,"pushed_at":"2022-07-21T07:11:32.000Z","size":469,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T22:42:59.836Z","etag":null,"topics":["boilerplate","bot","bot-framework","discord","discordjs","framework","nodejs","slash-commands","typescript"],"latest_commit_sha":null,"homepage":"https://lehuyh.github.io/slasho/","language":"TypeScript","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/LehuyH.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-09-07T00:09:20.000Z","updated_at":"2022-07-21T07:08:27.000Z","dependencies_parsed_at":"2022-09-07T09:50:07.740Z","dependency_job_id":null,"html_url":"https://github.com/LehuyH/slasho","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LehuyH%2Fslasho","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LehuyH%2Fslasho/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LehuyH%2Fslasho/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LehuyH%2Fslasho/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LehuyH","download_url":"https://codeload.github.com/LehuyH/slasho/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248111957,"owners_count":21049576,"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":["boilerplate","bot","bot-framework","discord","discordjs","framework","nodejs","slash-commands","typescript"],"created_at":"2024-11-13T23:07:43.355Z","updated_at":"2025-10-14T03:41:41.616Z","avatar_url":"https://github.com/LehuyH.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg align=\"center\" style=\"width:320px\" src=\"https://raw.githubusercontent.com/LehuyH/slasho/main/.github/slasho_logo.png\" /\u003e\u003c/p\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/LehuyH/slasho/blob/main/LICENSE\"\u003e\n    \u003cimg alt=\"GitHub license\"src=\"https://badgen.net/github/license/lehuyh/slasho\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/LehuyH/slasho/\"\u003e\n    \u003cimg alt=\"Release Tag\"src=\"https://badgen.net/github/tag/lehuyh/slasho\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://lehuyh.github.io/slasho/#/\"\u003e\n    \u003cimg alt=\"Github Pages\" src=\"https://badgen.net/badge/Documentation/GitHub%20Pages/green\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e   ⚠️  **Slasho is under heavy development**: Expect changes to the  underlying API as we build things out!\n\nSlasho is a minimal framework for making Discord bots. It's for bot developers who want a clean environment with the core functionality they need to dive straight into building their bots.\n\n[📌 Getting Started Guide](https://lehuyh.github.io/slasho/#/?id=getting-started)\n\n**When using discord.js, developers run into a number of problems**\n* A lot of boilerplate. It's not hard to write discord.js, but it can be difficult to maintain.\n* Slash command testing. Developers have to setup new workflows to test slash commands.\n* Lack of command/event handling utilities\n* No command lifecycle utilities to setup, validate, and deploy commands\n\n\n**Slasho** is here to fix all of these problems!  \n\n\n## Features\n* Uses modern Discord APIs and supports slash commands out of the box\n* No learning curve. Slasho builds on top of discord.js and works well with existing logic\n* Single-file commands/events, just create new files to extend the bot's functionality\n* Introduces command lifecycle utilities like init and validate\n* Slash command deployment for development and production cases\n* Shared state across commands \n\n## Installation\n\nUse the package manager [npm](https://www.npmjs.com/package/discord-slasho) to install slasho.\n\n```bash\nnpm install discord-slasho\n```\n\n## How it works\nHere's a very basic example of what a command in Slasho looks like\n```ts\n/* ./commands/ping.ts */\nimport { CommandInteraction } from \"discord.js\";\nimport { Command } from \"discord-slasho\";\n\nexport default {\n  //Command metadata\n  type: \"slash\",\n  name: \"ping\",\n  description: \"ping pong!\",\n  //Options that you want discord to collect\n  options: [\n    {\n      name: \"user\",\n      description: \"User to ping pong!\",\n      type: \"USER\",\n      required: true,\n    },\n  ],\n  //Main execution function, see Command Life Cycle in docs for more info\n  execute({ interaction }) {\n    interaction.reply(` 🏓 ${interaction.options.getUser(\"user\").username}`);\n  },\n} as Command\u003cCommandInteraction\u003e;\n```\n**📚 Please check out [the docs](https://lehuyh.github.io/slasho/#/) for more information.**\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Make sure to lint 😉\n\nPlease make sure to update tests as appropriate.\n\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flehuyh%2Fslasho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flehuyh%2Fslasho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flehuyh%2Fslasho/lists"}