{"id":19872350,"url":"https://github.com/codecraft26/wheather-bot-server","last_synced_at":"2025-07-04T23:39:02.799Z","repository":{"id":218974548,"uuid":"745588240","full_name":"codecraft26/wheather-bot-server","owner":"codecraft26","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-27T18:15:33.000Z","size":363,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T00:58:35.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codecraft26.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-01-19T16:58:14.000Z","updated_at":"2024-01-24T17:48:35.000Z","dependencies_parsed_at":"2025-01-11T16:33:28.143Z","dependency_job_id":"482a2e0d-b58f-465d-a5d6-4e110e864510","html_url":"https://github.com/codecraft26/wheather-bot-server","commit_stats":null,"previous_names":["codecraft26/wheather-bot-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codecraft26/wheather-bot-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecraft26%2Fwheather-bot-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecraft26%2Fwheather-bot-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecraft26%2Fwheather-bot-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecraft26%2Fwheather-bot-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codecraft26","download_url":"https://codeload.github.com/codecraft26/wheather-bot-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecraft26%2Fwheather-bot-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263636498,"owners_count":23492268,"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-12T16:15:14.585Z","updated_at":"2025-07-04T23:39:02.727Z","avatar_url":"https://github.com/codecraft26.png","language":"TypeScript","readme":"## WeatherBot using NestJS\n#### Prerequisites\n- Node.js installed\n- MongoDB installed\n- Telegram Bot token from BotFather\n- OpenWeatherMap API key\n#### Steps\nClone the Repository\n```bash\n\ngit clone https://github.com/codecraft26/wheather-bot-server\n```\n```bash\ncd wheather-bot-server\n```\n#### Install Dependencies\n\n```bash\n npm install\n```\n### a\n##### Set Environment Variables\nCreate a .env file in the root directory with the following content:\n\n```bash\n\nTELEGRAM_BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN\nMONGODB_URI=YOUR_MONGODB_URI\nOPENWEATHERMAP_API_KEY=YOUR_OPENWEATHERMAP_API_KEY\nReplace YOUR_TELEGRAM_BOT_TOKEN, YOUR_MONGODB_URI, and YOUR_OPENWEATHERMAP_API_KEY with your actual values.\n```\n#### Create Admin User in MongoDB\nYou can use a MongoDB GUI or shell to insert an admin user manually. Add a document to the users collection:\n\n```json\n{\n  \"username\": \"admin\",\n  \"password\": \"adminpassword\",\n  \"isAdmin\": true\n}\n\n```\n#### Run the Application\n```bash\n\nnpm start\n```\nThe bot will be accessible at http://localhost:8000.\n\n##### Telegram Commands\n- /start - Subscribe to daily weather updates.\n- /stop - Unsubscribe from daily weather updates.\n####  Admin Panel\n- Access the admin panel at http://localhost:8000/admin.\n- Use Google login to authenticate.\n- Update bot settings and manage user accounts.\n#### Weather Update\n- The bot sends weather updates daily at 9 AM using the OpenWeatherMap API.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecraft26%2Fwheather-bot-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecraft26%2Fwheather-bot-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecraft26%2Fwheather-bot-server/lists"}