{"id":17767080,"url":"https://github.com/oliverfindl/pokec-send-message","last_synced_at":"2025-04-01T14:18:32.583Z","repository":{"id":57326780,"uuid":"148896754","full_name":"oliverfindl/pokec-send-message","owner":"oliverfindl","description":"Simple wrapper class for sending messages to chatrooms on Pokec social network.","archived":false,"fork":false,"pushed_at":"2018-10-05T21:06:16.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-02-25T08:41:05.409Z","etag":null,"topics":["api","javascript","message","pokec","pokec-send-message","send","web","wrapper"],"latest_commit_sha":null,"homepage":"","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/oliverfindl.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-09-15T11:39:57.000Z","updated_at":"2018-10-05T21:05:54.000Z","dependencies_parsed_at":"2022-09-21T02:01:39.162Z","dependency_job_id":null,"html_url":"https://github.com/oliverfindl/pokec-send-message","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverfindl%2Fpokec-send-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverfindl%2Fpokec-send-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverfindl%2Fpokec-send-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverfindl%2Fpokec-send-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliverfindl","download_url":"https://codeload.github.com/oliverfindl/pokec-send-message/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246651559,"owners_count":20811994,"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":["api","javascript","message","pokec","pokec-send-message","send","web","wrapper"],"created_at":"2024-10-26T20:42:32.844Z","updated_at":"2025-04-01T14:18:32.561Z","avatar_url":"https://github.com/oliverfindl.png","language":"JavaScript","funding_links":["https://paypal.me/oliverfindl"],"categories":[],"sub_categories":[],"readme":"# pokec-send-message\r\n\r\n[![npm](https://img.shields.io/npm/v/pokec-send-message.svg?style=flat)](https://www.npmjs.com/package/pokec-send-message)\r\n[![npm](https://img.shields.io/npm/dt/pokec-send-message.svg?style=flat)](https://www.npmjs.com/package/pokec-send-message)\r\n[![npm](https://img.shields.io/npm/l/pokec-send-message.svg?style=flat)](https://www.npmjs.com/package/pokec-send-message)\r\n[![paypal](https://img.shields.io/badge/donate-paypal-blue.svg?colorB=0070ba\u0026style=flat)](https://paypal.me/oliverfindl)\r\n\r\nSimple wrapper class for sending messages to chatrooms on [Pokec](https://pokec.azet.sk/) social network.\r\n\r\n\u003e This package cannot send RP messages.\r\n\r\n---\r\n\r\n## Install\r\n\r\nVia [npm](https://npmjs.com/) [[package](https://www.npmjs.com/package/pokec-send-message)]:\r\n```bash\r\n$ npm install pokec-send-message\r\n```\r\n\r\nVia [yarn](https://yarnpkg.com/en/) [[package](https://yarnpkg.com/en/package/pokec-send-message)]:\r\n```bash\r\n$ yarn add pokec-send-message\r\n```\r\n\r\n## Usage\r\n\r\n```javascript\r\n// require lib\r\nconst PokecAPI = require(\"pokec-send-message\");\r\n\r\n// init lib\r\nconst pokec = new PokecAPI();\r\n\r\n// get list of pokec chatrooms\r\npokec.getRooms().then(console.log).catch(console.error);\r\n\r\n// login to pokec\r\npokec.login(\r\n\t\"username\",\r\n\t\"password\"\r\n).then(response =\u003e {\r\n\tconsole.log(response);\r\n\t\r\n\t// send message\r\n\tpokec.sendMessage(\r\n\t\t\"hello :)\", // message\r\n\t\t9, // room id, for list of available rooms use getRooms method\r\n\t\t\"somebody\" // [optional] for user, defaults to \"all\"\r\n\t).then(console.log).catch(console.error);\r\n\r\n\t// set interval for ping\r\n\tsetInterval(() =\u003e pokec.ping().then(console.log).catch(console.error));\r\n\r\n}).catch(console.error);\r\n```\r\n\r\n---\r\n\r\n## License\r\n\r\n[MIT](http://opensource.org/licenses/MIT)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliverfindl%2Fpokec-send-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliverfindl%2Fpokec-send-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliverfindl%2Fpokec-send-message/lists"}