{"id":16096047,"url":"https://github.com/frenchbread/didactic-quack","last_synced_at":"2025-08-22T23:09:25.284Z","repository":{"id":153546595,"uuid":"46516951","full_name":"frenchbread/didactic-quack","owner":"frenchbread","description":":pencil: Bot that works through Telegram Bot API.","archived":false,"fork":false,"pushed_at":"2016-08-13T15:34:49.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T12:18:07.523Z","etag":null,"topics":[],"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/frenchbread.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2015-11-19T20:00:26.000Z","updated_at":"2016-04-22T22:06:08.000Z","dependencies_parsed_at":"2023-05-19T09:45:35.065Z","dependency_job_id":null,"html_url":"https://github.com/frenchbread/didactic-quack","commit_stats":{"total_commits":79,"total_committers":1,"mean_commits":79.0,"dds":0.0,"last_synced_commit":"ce4c95f84a408c7cfee138f57d1b4b8a3e554f09"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Fdidactic-quack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Fdidactic-quack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Fdidactic-quack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Fdidactic-quack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frenchbread","download_url":"https://codeload.github.com/frenchbread/didactic-quack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247396437,"owners_count":20932334,"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-10-09T17:10:19.097Z","updated_at":"2025-04-05T20:27:49.146Z","avatar_url":"https://github.com/frenchbread.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# didactic-quack\n\nWrapper around [Telegram](https://telegram.org/) messenger API.\n\n![NPM Stats](https://nodei.co/npm/didactic-quack.png?downloads=true\u0026downloadRank=true\u0026stars=true)\n\n### Installation \u0026 setup\n\n1. Download [Telegram app](https://telegram.org/apps) and set it up.\n\n2. Text to [@BotFather](https://telegram.me/botfather) and follow instructions to create a new bot \u0026 get `api_token`.\n\n    See Official docs for [Bot API](https://core.telegram.org/bots).\n\n3. Install npm package.\n    ```\n    $ npm i didactic-quack --save\n    ```\n\n## Usage\n\n#### In `app.js`:\n\n```javascript\nvar DQ = require('didactic-quack');\n       \nvar dq = new DQ({\n    \"token\": \"your_telegram_bot_api_token\"\n});\n\nsetInterval(function () {\n\n    dq.getUpdates();\n\n}, 3000);\n\n```\n\n#### Run:\n\n ```\n$ node app.js\n```\n\n#### Commands:\n\nCommand implementations are stored in `Modules`. All modules should be registered in `modulesList.js` for bot to\nrecognise them and referenced in `modules/index.js`.\n \n#### Default commands:\n\nText this commands directly to you newly created bot.\n\n* `/time` - returns current time.\n\n* `/log \u003cproject\u003e | \u003chours\u003e | \u003cdetails\u003e` - returns logged data. (Does not do more. Only parses data and returns in user-friendly way).\n\n`\u003cproject\u003e` - `String`\n\n`\u003chours\u003e` - `Double`\n\n`\u003cdetails\u003e` - `String`\n\n## Changelog:\n\n`v0.3.0` - Refactored almost all. Added modules. Offset now stored in memory.\n\n`v0.2.2` - Fixed path to `offset.txt`.\n\n`v0.2.0` - Removed `Cron` \u0026 `Mongoose`. Code cleanup. Changed project structure.\n\n## ToDo:\n\n* Set up a web hook for a bot to receive new messages automatically. (Get rid of \"manual\" requests to the server).\n\n## License\n\n[MIT license](https://github.com/frenchbread/didactic-quack/blob/master/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrenchbread%2Fdidactic-quack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrenchbread%2Fdidactic-quack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrenchbread%2Fdidactic-quack/lists"}