{"id":14983383,"url":"https://github.com/lvorex/lvhandler","last_synced_at":"2025-10-29T22:30:36.064Z","repository":{"id":178164623,"uuid":"640676274","full_name":"lvorex/LVHandler","owner":"lvorex","description":" Simple and useful discord command and event handler.","archived":false,"fork":false,"pushed_at":"2023-11-19T19:21:09.000Z","size":51,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T05:11:06.304Z","etag":null,"topics":["discord","discord-bot","discord-command-handler","discord-commands","discord-events","discord-handler","discord-js","discord-js-bot","discord-js-handler","discord-js-v13","discord-js-v14","discord-js-v14-command-handler","discord-slash-commands","slash-commands-handler"],"latest_commit_sha":null,"homepage":"","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/lvorex.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}},"created_at":"2023-05-14T21:28:04.000Z","updated_at":"2024-07-16T13:53:31.000Z","dependencies_parsed_at":"2023-11-19T11:29:27.031Z","dependency_job_id":null,"html_url":"https://github.com/lvorex/LVHandler","commit_stats":null,"previous_names":["lvorex/lvhandler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvorex%2FLVHandler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvorex%2FLVHandler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvorex%2FLVHandler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvorex%2FLVHandler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvorex","download_url":"https://codeload.github.com/lvorex/LVHandler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238900286,"owners_count":19549485,"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":["discord","discord-bot","discord-command-handler","discord-commands","discord-events","discord-handler","discord-js","discord-js-bot","discord-js-handler","discord-js-v13","discord-js-v14","discord-js-v14-command-handler","discord-slash-commands","slash-commands-handler"],"created_at":"2024-09-24T14:07:08.530Z","updated_at":"2025-10-29T22:30:30.769Z","avatar_url":"https://github.com/lvorex.png","language":"TypeScript","readme":"\u003ca href='https://github.com/lvorex/LVHandler' target='_blank'\u003e![GitHub Repo](https://img.shields.io/github/stars/lvorex/LVHandler?style=social)\u003c/a\u003e\n\n# LVHandler\n\nLVHandler is a discord command/event handler. It is very easy to use and makes it easy to create commands and events. \nIt also automatically integrates the files in the command/event folder you specify into your bot.\nYou can better understand what I have explained with the following examples.\n\n## Example Usage\n\n**Install NPM Package:**\n```css\nnpm install lvhandler\n```\n\n**Setup LVHandler:**\n\u003e _index.ts_\n```ts\nimport { Client, Events, IntentsBitField } from \"discord.js\";\nimport LVHandler from \"lvhandler\";\nimport path from \"path\";\n\nconst client = new Client({ intents: [/* Your Intents */] })\n\nclient.on(Events.ClientReady, () =\u003e {\n    new LVHandler({\n        client: client, // Your client instance\n        commandDir: path.join(__dirname, \"Commands\"), // Bots command dir.\n        eventDir: path.join(__dirname, \"Events\"), // Bots event dir.\n        autoDelete: true, // Auto delete slash command when file not exists.\n        defaultPrefix: \"!\" // Default prefix for non-slash (regular) commands.\n    })\n})\n\nclient.login(\"TOKEN\")\n```\n\n**Command Creation:**\n\u003e _Commands/ping.ts_\n```ts\nimport { LVCommand } from \"lvhandler\";\nimport { TypeOfCommand } from \"lvhandler\";\n\nexport default {\n    description: \"Replies With Pong.\", // Command Description.\n    type: TypeOfCommand.SLASH, // Command Type. (BOTH, SLASH, REGULAR)\n    options: [], // Command Options.\n\n    execute: async ({ interaction }) =\u003e {\n        if (!interaction) return\n        await interaction.reply({ content: \"Pong!\" })\n    }\n} as LVCommand\n```\n\n**Event Creation:**\n\u003e _Events/replyToHi.ts_\n```ts\nimport { Events } from \"discord.js\";\nimport { LVEvent } from \"lvhandler\";\n\nexport default {\n    execute: (client) =\u003e {\n        client.on(Events.MessageCreate, async (message) =\u003e {\n            if (message.content.toLowerCase() === \"hi\") {\n                await message.reply(\"Hi!\")\n            }\n        })\n    }\n} as LVEvent\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvorex%2Flvhandler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvorex%2Flvhandler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvorex%2Flvhandler/lists"}