{"id":21152575,"url":"https://github.com/nimbella/commander-template","last_synced_at":"2026-05-17T12:33:38.324Z","repository":{"id":44021934,"uuid":"230193307","full_name":"nimbella/commander-template","owner":"nimbella","description":"GitHub Template to kick-start your Nimbella command set development.","archived":false,"fork":false,"pushed_at":"2022-12-05T02:48:03.000Z","size":503,"stargazers_count":2,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T14:47:49.545Z","etag":null,"topics":["commander","nimbella","slack","slack-commands","slash-commands"],"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/nimbella.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":"2019-12-26T04:14:12.000Z","updated_at":"2020-06-05T01:40:46.000Z","dependencies_parsed_at":"2023-01-22T23:15:39.737Z","dependency_job_id":null,"html_url":"https://github.com/nimbella/commander-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/nimbella/commander-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimbella%2Fcommander-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimbella%2Fcommander-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimbella%2Fcommander-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimbella%2Fcommander-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nimbella","download_url":"https://codeload.github.com/nimbella/commander-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimbella%2Fcommander-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33138401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["commander","nimbella","slack","slack-commands","slash-commands"],"created_at":"2024-11-20T10:43:25.576Z","updated_at":"2026-05-17T12:33:38.308Z","avatar_url":"https://github.com/nimbella.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nimbella Commander Template\n\nUse this template to kick-start your command set development.\n\n## Creating Currency Command-set using the template\n\nLet's assume you want to create a `currency` command-set with 1 command, `converter` which converts one currency to another. We can do this by following the following steps\n\n1. Fork a copy of this repo into your account.\n2. Clone the repo locally as `currency` or rename it to `currency` after cloning.\n3. Open `commands.yaml` and edit it to reflect `currency` command-set containing `converter` command.\n4. Your `commands.yaml` might look like this:\n\n```yaml\ncommands:\n  currency:\n    description: Convert currency from one to other\n```\n\n5. Now we want to add 2 mandatory params to our command which is `from` and `to`, our `commands.yaml` is going to look like this:\n\n```yaml\ncommands:\n  currency:\n    description: Convert currency from one to other\n    parameters:\n      - name: from\n      - name: to\n```\n\n6. Next, we need to rename files. So under packages directory, rename `hello` to `currency`\n7. Under `currency` directory, rename `hello.js` to `converter.js`\n8. Edit `converter.js` to add the currency convertor logic. Once this is done, save the file and commit all the contents and push the changes to your repo. This is what the `converter`code might look like:\n\n```js\nasync function install(pkgs) {\n  pkgs = pkgs.join(' ');\n  return new Promise((resolve, reject) =\u003e {\n    const { exec } = require('child_process');\n    exec(`npm install ${pkgs}`, (err, stdout, stderr) =\u003e {\n      if (err) reject(err);\n      else resolve();\n    });\n  });\n}\n\nasync function _command(params, commandText, secrets = {}) {\n  const {\n    from,\n    to\n  } = params;\n\n  let packages = [ 'exchange-rates-api' ];\n  await install(packages);\n\n  const { convert } = require('exchange-rates-api');\n  let amount = await convert(1, from, to);\n\n  return {\n    response_type: 'in_channel', // or `ephemeral` for private response\n    text: '1 ' + from + ' is equal to ' + amount + ' ' + to\n  };\n```\n\n9. You can then install your command-set by running the following command `/nc csm_install github:user/currency`\n\n## Running \u0026 Debugging your command-set\n\n1. You can run the converter command with `/nc converter`\n2. You can make changes on the online editor with `/nc command_code converter`\n3. Make sure you commit any changes to your github command-set. The changes can updated with `/nc csm_update currency`\n4. Any logs you add within the command can be seen by running `/nc activation_log` _after_ running your command. This might help in fixing bugs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimbella%2Fcommander-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnimbella%2Fcommander-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimbella%2Fcommander-template/lists"}