{"id":21622395,"url":"https://github.com/yamdbf/command-usage","last_synced_at":"2026-04-20T10:06:27.986Z","repository":{"id":40707111,"uuid":"97991349","full_name":"yamdbf/command-usage","owner":"yamdbf","description":"YAMDBF plugin for logging command usage and command usage statistics","archived":false,"fork":false,"pushed_at":"2022-12-07T07:02:27.000Z","size":693,"stargazers_count":3,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T23:05:22.005Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yamdbf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-21T22:34:49.000Z","updated_at":"2020-12-27T17:06:53.000Z","dependencies_parsed_at":"2023-01-24T13:45:55.827Z","dependency_job_id":null,"html_url":"https://github.com/yamdbf/command-usage","commit_stats":null,"previous_names":["zajrik/yamdbf-command-usage"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamdbf%2Fcommand-usage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamdbf%2Fcommand-usage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamdbf%2Fcommand-usage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamdbf%2Fcommand-usage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yamdbf","download_url":"https://codeload.github.com/yamdbf/command-usage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244287028,"owners_count":20428885,"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-11-25T00:08:37.651Z","updated_at":"2026-04-20T10:06:27.952Z","avatar_url":"https://github.com/yamdbf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# command-usage\n`command-usage` is a plugin for Discord bots that are written with YAMDBF+Discord.js\nthat gives the ability to have commands logged to a specified channel and to view\ncommand usage statistics via a `usagestats` command.\n\n# Usage\nInstall the package via `npm`:\n```\nnpm install --save @yamdbf/command-usage\n```\nor to install the indev version:\n```\nnpm install --save @yamdbf/command-usage@indev\n```\n\n\u003eNote: This plugin depends on YAMDBF \u003e3.0.0, so obviously make sure `yamdbf` is installed\n\nThere are two ways to use the plugin after installing. The first is a simple automatic\nimport by passing `'command-usage'` to your YAMDBF Client options `plugins` array field:\n```js\nconst { Client } = require('@yamdbf/core');\n\nconst client = new Client({\n\t...\n\tplugins: ['command-usage']\n});\n```\n\u003eUsing the plugin this way does not allow for command logging to Discord\n\nThe second is via a manual import, which will give access to command logging via a specified\nguild text channel. You must import `commandUsage` from the package and pass it to your\nYAMDBF Client options `plugins` array field with the channel ID of the channel you want\ncommands to be logged to:\n```js\nconst { Client } = require('@yamdbf/core');\nconst { commandUsage } = require('@yamdbf/command-usage');\n\nconst client = new Client({\n\t...\n\tplugins: [commandUsage('channelID')]\n});\n```\n\nIf you find any problems or have any suggestions, don't hesitate to open up an issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyamdbf%2Fcommand-usage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyamdbf%2Fcommand-usage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyamdbf%2Fcommand-usage/lists"}