{"id":21521872,"url":"https://github.com/greensky-gs/cooldowns","last_synced_at":"2025-03-17T17:22:08.624Z","repository":{"id":120636493,"uuid":"492238243","full_name":"Greensky-gs/cooldowns","owner":"Greensky-gs","description":"Cooldown manager","archived":false,"fork":false,"pushed_at":"2022-05-14T14:36:32.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T04:51:40.507Z","etag":null,"topics":["cooldown","manager"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Greensky-gs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-14T14:25:00.000Z","updated_at":"2022-10-24T09:14:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba50250b-58ab-494c-969a-034ec96fc02b","html_url":"https://github.com/Greensky-gs/cooldowns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Greensky-gs%2Fcooldowns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Greensky-gs%2Fcooldowns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Greensky-gs%2Fcooldowns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Greensky-gs%2Fcooldowns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Greensky-gs","download_url":"https://codeload.github.com/Greensky-gs/cooldowns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244075649,"owners_count":20393980,"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":["cooldown","manager"],"created_at":"2024-11-24T01:08:34.006Z","updated_at":"2025-03-17T17:22:08.619Z","avatar_url":"https://github.com/Greensky-gs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cooldowns\nThis is a cooldown manager.\n\n## Usage\nFirst, create the manager\n```js\nconst manager = new require('cooldownsManager.js')();\nclient.CooldownsManager = manager;\n```\n\n## Set a cooldown\n```js\nclient.CooldownsManager.set({\n  commandName: 'your command name',\n  time: 5, // This number is in seconds\n  userID: \"User id here\"\n});\n```\n\nAnd cooldown is automatically done !\n\n## Check for a cooldown\n```js\nclient.CooldownsManger.check({\n  commandName: \"Command name here\",\n  userID: \"user id here\"\n});\n```\n\nreturns `true` if user has a cooldown\nreturns `false` if user has not\n\n## remaining time\n```js\nclient.CooldownsManager.remainingTime({\n  commandName: 'command name',\n  userID: \"user id\"\n});\n```\n\nreturns `false` if user has no cooldown\nreturns the number of seconds remains on the cooldown.\n\n## Finish !\n\nNow you can use my amazing module !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreensky-gs%2Fcooldowns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreensky-gs%2Fcooldowns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreensky-gs%2Fcooldowns/lists"}