{"id":18188062,"url":"https://github.com/hypfer/botanischergarten","last_synced_at":"2025-04-09T22:42:32.840Z","repository":{"id":70162464,"uuid":"93887804","full_name":"Hypfer/BotanischerGarten","owner":"Hypfer","description":"A broken mess","archived":false,"fork":false,"pushed_at":"2021-06-22T18:15:12.000Z","size":311,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T00:39:00.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hypfer.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},"funding":{"github":"hypfer","ko_fi":"hypfer"}},"created_at":"2017-06-09T18:47:33.000Z","updated_at":"2023-02-25T21:01:08.000Z","dependencies_parsed_at":"2023-03-15T18:04:23.123Z","dependency_job_id":null,"html_url":"https://github.com/Hypfer/BotanischerGarten","commit_stats":{"total_commits":72,"total_committers":4,"mean_commits":18.0,"dds":0.125,"last_synced_commit":"4d0f8a752af4309dfee9a0affe112f850256ba84"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypfer%2FBotanischerGarten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypfer%2FBotanischerGarten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypfer%2FBotanischerGarten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypfer%2FBotanischerGarten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hypfer","download_url":"https://codeload.github.com/Hypfer/BotanischerGarten/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248124883,"owners_count":21051757,"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-03T02:04:31.175Z","updated_at":"2025-04-09T22:42:32.832Z","avatar_url":"https://github.com/Hypfer.png","language":"TypeScript","funding_links":["https://github.com/sponsors/hypfer","https://ko-fi.com/hypfer"],"categories":[],"sub_categories":[],"readme":"# BotanischerGarten\n###### A modular Telegram bot \n___\n\n**Don't use this. It's very bad code**\n\n__BotanischerGarten__ is a modular, open-source telegram bot based on:\n* Node.js\n* Typescript\n* MongoDB\n* Various Patterns\n\n## Requirements\n* MongoDB \u003e= 3.2\n* Node.js \u003e= 6.0.0\n\n\n## Getting started\n* Create a New Bot at `@BotFather` with `/newbot`\n* Enable Inline at `@BotFather` with `/setinline`\n* Install the typescript compiler with `npm install -g typescript`\n* Copy the `config.example.json` to `config.json`, change the token and check the database connection string\n* Navigate into the root folder of this project\n    * `npm install`\n    * `tsc -p .`\n* Run the Bot: `node app.js`\n* Add the Bot to the relevant groups\n* For now you'll have to manually grant usage/admin rights by editing the Database.\n[Robomongo](https://robomongo.org/) is the recommended tool for this task.\n    * Everytime the Bot sees a message from a new user it saves him in the `Users` collection.\n    * To give this user permission to use this bot add the string \"user\" to its `roles` array.\n    * To promote this user to admin add \"admin\" as well.\n\n## Q: What does it do?\nA: Depends on the module\n\n### Hashes\nThe main module is the `Hashes` module, which provides a Key:Value Storage for Telegram Messages.\nJust reply to a Message in a group with `#define xy` and whenever you or any other user of your bot sends a message containing `#xy` the bot will reply with the previously defined content.\n\nThese hashes are also available via inline: `@Botname`.  \nYou can search for hashes or enjoy endless scrolling with random hashes by not entering a search term.\n\n### Other Modules\nYes, there are other modules as well. Go try them. They're also available via inline and have special hashes.\n\n## FAQ\n* Can I contribute?\n    - Yes.\n* How?\n    - Fork, PR, Done.\n* Why the name?\n    - Yes.\n    \n## ToDo\n* Check if route already exists before creating it\n* Fix ToDos in the code itself","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypfer%2Fbotanischergarten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypfer%2Fbotanischergarten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypfer%2Fbotanischergarten/lists"}