Discover stunning wallpapers directly on Telegram with the Wallpaper Discover Bot. Powered by WallHaven, this bot provides high-quality backgrounds to refresh your device's look. Simply interact with the bot, pick a theme (e.g., "nature", "urban", "minimalist"), and receive a curated selection in seconds.
- Direct access to Unsplash's vast library.
- High-resolution wallpapers.
- User-friendly interaction.
- Regular updates with new wallpapers.
Ensure you have Node.js installed on your machine.
-
Clone the repository:
git clone https://github.com/diegormirhan/wallpaper-discover-bot.git
-
Navigate to the project directory:
cd wallpaper-discover-bot
-
Install the required dependencies:
npm install
-
Create a
.env
file in the root directory and add the following environment variables:WALLHAVEN_TOKEN=YOUR_UNSPLASH_ACCESS_KEY TELEGRAM_API=YOUR_TELEGRAM_API_KEY DATABASE_URL=YOUR_DATABASE_URL ADMIN_ID=YOUR_ADMIN_ID ADMIN_PASSWORD=YOUR_ADMIN_PASSWORD
-
Start the bot:
npm run dev
- start: Runs the bot.
- api-test: Executes API tests.
- bot-test: Executes bot-related tests.
- dev: Runs the bot in development mode with nodemon.
- axios: Making HTTP requests.
- dotenv: Loading environment variables.
- mongodb: MongoDB driver for Node.js.
- node-telegram-bot-api: Telegram Bot API for Node.js.
- jest: Testing framework.
- nodemon: Monitor for changes in source and automatically restart your server.
This project is licensed under the MIT License.