{"id":22436655,"url":"https://github.com/yash-garg/node-wallhaven-bot","last_synced_at":"2025-08-01T15:31:30.044Z","repository":{"id":38796080,"uuid":"258583453","full_name":"Yash-Garg/node-wallhaven-bot","owner":"Yash-Garg","description":"A telegram bot to download wallpapers from Wallhaven based on NodeJS","archived":false,"fork":false,"pushed_at":"2023-02-23T16:57:19.000Z","size":41,"stargazers_count":8,"open_issues_count":2,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T01:42:43.738Z","etag":null,"topics":["bot","javascript","node-telegram-bot-api","nodejs","npm","telegram","wallhaven"],"latest_commit_sha":null,"homepage":"","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/Yash-Garg.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":"2020-04-24T17:50:41.000Z","updated_at":"2024-07-20T08:46:48.000Z","dependencies_parsed_at":"2022-09-18T07:04:53.434Z","dependency_job_id":null,"html_url":"https://github.com/Yash-Garg/node-wallhaven-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Yash-Garg/node-wallhaven-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yash-Garg%2Fnode-wallhaven-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yash-Garg%2Fnode-wallhaven-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yash-Garg%2Fnode-wallhaven-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yash-Garg%2Fnode-wallhaven-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yash-Garg","download_url":"https://codeload.github.com/Yash-Garg/node-wallhaven-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yash-Garg%2Fnode-wallhaven-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268250435,"owners_count":24219833,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bot","javascript","node-telegram-bot-api","nodejs","npm","telegram","wallhaven"],"created_at":"2024-12-06T00:08:47.978Z","updated_at":"2025-08-01T15:31:29.734Z","avatar_url":"https://github.com/Yash-Garg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is this bot about?\nA telegram bot to download wallpapers from Wallhaven based on NodeJS by [Me](https://github.com/Yash-Garg) and [Barun](https://github.com/daemon1024).\n\n![wallhaven image](https://w.wallhaven.cc/full/1j/wallhaven-1j7eg3.png)\n\n## Limitations\nThis bot should not be spammed with commands as [Wallhaven API](https://wallhaven.cc/help/api#limits) allows only 45 requests per minute, if you hit this limit you will receive a **429 - Too many requests error**.\n\n## Bot Commands\n\n* `/random` : Provides a random image from the wallhaven database\n* `/search \u003ckeyword\u003e` : Provides a random image related to the keyword\n* `/nsfw` : Provides a random NSFW (not safe for work) image \n* `/getwall \u003cid\u003e` : Provides the specific wall requested by matching the id provided by user\n* `/top \u003c1d/3d/1w/1M/3M/6M/1y\u003e` : Provides 5 images from the toplist based on the topRange specified by user\n* `/ping` : Checks the response time of bot by requesting to telegram api\n\n**NOTE** : Image previews are not shown in toplist command to prevent API spam\n# How to deploy?\n## Installing requirements\n* Clone this repo :\n```git\ngit clone https://github.com/Yash-Garg/node-wallhaven-bot\ncd node-wallhaven-bot\n```\n\u003e Make sure NodeJS and npm is installed\n* Install required npm packages :\n```node\nnpm install\n```\n## Setting up config file\n* Copy example config as config.js :\n`cp example_config.js config.js`\n\nFill up all the fields. Meaning of each fields are discussed below:\n* **TOKEN** : The telegram bot token that you get from [@BotFather](https://t.me/botfather)\n* **API_WALLHAVEN** : Your wallhaven API which you can get by making up an account on [Wallhaven](https://wallhaven.cc). API can be found under the Settings \u003e Account tab\n* **AUTH_USERS** : Telegram ID of users whom u want to allow access to use this bot\n* **AUTH_CHATS** : Telegram ID of the chat where u want to allow access of bot by anyone in that particular chat \n\n**NOTE** : `AUTH_CHATS` is optional, u can leave it blank or as it is.\n\n# Deploying\n* Start the bot by using this command :\n`npm start`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyash-garg%2Fnode-wallhaven-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyash-garg%2Fnode-wallhaven-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyash-garg%2Fnode-wallhaven-bot/lists"}