{"id":13400800,"url":"https://github.com/skoif/Yandex-Dialogs","last_synced_at":"2025-03-14T06:31:56.717Z","repository":{"id":57403141,"uuid":"135945075","full_name":"skoif/Yandex-Dialogs","owner":"skoif","description":"This is Node.JS SDK for yandex dialogs built with Express.","archived":false,"fork":false,"pushed_at":"2018-06-11T14:39:30.000Z","size":34,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T07:39:38.159Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skoif.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}},"created_at":"2018-06-03T22:19:04.000Z","updated_at":"2020-06-04T07:01:26.000Z","dependencies_parsed_at":"2022-09-18T11:53:28.344Z","dependency_job_id":null,"html_url":"https://github.com/skoif/Yandex-Dialogs","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/skoif%2FYandex-Dialogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoif%2FYandex-Dialogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoif%2FYandex-Dialogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skoif%2FYandex-Dialogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skoif","download_url":"https://codeload.github.com/skoif/Yandex-Dialogs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243537935,"owners_count":20307098,"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-07-30T19:00:55.625Z","updated_at":"2025-03-14T06:31:56.710Z","avatar_url":"https://github.com/skoif.png","language":"JavaScript","funding_links":[],"categories":["Разработка"],"sub_categories":["SDK"],"readme":"[![npm version](https://badge.fury.io/js/yandex-dialogs.svg)](https://badge.fury.io/js/yandex-dialogs)\n# Yandex Dialogs SDK [BETA]\nThis is something like express, but for Yandex Dialogs.\nThis is community library, not official.\n## Installation\nInstall from NPM\n```\nnpm install yandex-dialogs\n```\nInstall from GIT\n```\nnpm install https://github.com/skoif/Yandex-Dialogs\n```\n## Usage\n```javascript\nconst Dialog = require(\"yandex-dialogs\");\nconst dialog = new Dialog({port: 3000, url: \"/alice\", default_response: \"Я вас не понимаю\"});\ndialog.bind(\"Привет\", (req,res)=\u003e{\n    res.send(\"Приветствую!\");\n});\n```\n## Dialog constructor parameters\n```\nnew Dialog({[port], [url], [default_response]});\n```\nPort - web port, default: 3000\\\nUrl - app's url, default: /\\\nDefault response - response to send if no binds found, default: К сожалению, я вас не понимаю\n## Bind\nThis function binds event for command\n```\ndialog.bind([command (or array of commands)], [callback]);\n```\n## BindOriginal\nThis function binds event for original_utterance\n```\ndialog.bindOriginal([original_utterance (or array)], [callback]);\n```\n## Bind's callbacks\n```\n([Request data],[Response object])=\u003e{\n    res.send([text], [tss], [buttons], [end_session]);\n}\n```\nCheck official docs at https://tech.yandex.ru/dialogs/alice/doc/protocol-docpage/ To understand what is Request data, text, tss, buttons and end_session\n# Disclaimer\nThis is not official Yandex's library.\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\nLib version: 0.3.0\nReadme for version: 0.3.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskoif%2FYandex-Dialogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskoif%2FYandex-Dialogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskoif%2FYandex-Dialogs/lists"}