{"id":18574176,"url":"https://github.com/vermicida/wit-bot-test","last_synced_at":"2025-05-15T23:34:23.011Z","repository":{"id":94734289,"uuid":"57116294","full_name":"vermicida/wit-bot-test","owner":"vermicida","description":"This is a simple Wit.ai test.","archived":false,"fork":false,"pushed_at":"2023-08-05T20:38:18.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T14:49:03.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/vermicida.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-26T09:38:50.000Z","updated_at":"2023-08-05T20:38:23.000Z","dependencies_parsed_at":"2024-12-26T14:44:31.996Z","dependency_job_id":"db484a24-9e6b-4c31-92f2-0c234a2eb1ab","html_url":"https://github.com/vermicida/wit-bot-test","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/vermicida%2Fwit-bot-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vermicida%2Fwit-bot-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vermicida%2Fwit-bot-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vermicida%2Fwit-bot-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vermicida","download_url":"https://codeload.github.com/vermicida/wit-bot-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442429,"owners_count":22071864,"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-06T23:14:15.560Z","updated_at":"2025-05-15T23:34:22.977Z","avatar_url":"https://github.com/vermicida.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# wit-bot-test\n\nThis is a simple Wit bot test. It can only give you the weather forecast. I know it's not as smart as you would like, but hey, it's a beginning ;)\n\n[![Dependency Status](https://david-dm.org/vermicida/wit-bot-test.svg)](https://david-dm.org/vermicida/wit-bot-test)\n\n## Getting started\n\nThis application consumes a Wit app based on the [5 Minute Quickstart](https://wit.ai/docs/quickstart) recipe, so the first step you have to take is to follow up this guide and create your own app. Once the app is ready, go to the Settings / API Details menu in your Wit console and keep safe the Client Access Token; you will need it later.\n\nTo fetch the weather forecast, this application uses [OpenWeatherMap API](http://openweathermap.org/). You must get an [API key](http://openweathermap.org/appid) to allow your code to go there for data. Remember to have this API key on hand.\n\nClone this repo using the command below:\n```bash\n$ git clone https://github.com/vermicida/wit-bot-test.git\n```\n\nThen, install the app dependencies using NPM:\n```bash\n$ npm install\n```\n\nNow we're ready to configure the app. \n\n## Configuration\n\nOpen the `config.json` file, located in the app root, and fill in the tokens that you got before: \n```json\n{\n  \"witai\": {\n    \"accessToken\": \"Use the token from the Wit app right here.\"\n  },\n  \"openWeather\": {\n    \"key\": \"And put the OpenWeatherMap's here.\"\n  }\n}\n```\n\nAlso, you can set the server's host and port:\n```json\n{\n  \"server\": {\n    \"host\": \"0.0.0.0\",\n    \"port\": 9000\n  }\n}\n```\n\n## Running\n\nYou're only one step to chat with your bot. Just run the NPM `start` script:\n```bash\n$ npm start\n```\n\nNavigate the server in a browser _et voilà_!\n\nThe conversation must flow this way:\n\n- **Bot**: Connected\n- **You**: What's the weather?\n- **Bot**: Where exactly?\n- **You**: In Malaga, Spain (you can ask the bot for any town)\n- **Bot**: The weather in Malaga is 12ºC and clear sky.\n\n## License\n\nCode released under the [MIT license](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvermicida%2Fwit-bot-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvermicida%2Fwit-bot-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvermicida%2Fwit-bot-test/lists"}