Bot Command:
- /now - Know your local weather immediately.
- /weather [Name of another city] - Know the weather of another city immediately.
- /setlocal [Name of your local city] - Set your local city.
Avalative on telegram: @local_weather_checker_bot
Open the bash terminal
git clone https://github.com/avijitdas126/Local-Weather-bot.git
Next
cd Local-Weather-bot
npm install
Create a .env file and add the following details
BOT_TOKEN=<YOUR-BOT-TOKEN>
OpenWeather_Token0=<YOUR-OPEN WEATHER API TOKEN 1>
OpenWeather_Token1=<YOUR-OPEN WEATHER API TOKEN 2>
MongoDb_url=<YOUR-MONGODB-URL>
- Bot token- will be provided by @BotFather bot on telegram
- I use two OpenWeather api Token because of scaling
- I use database (like Mongodb) for storing user's information
- Telegraf.js
- Mongodb
- Mongoose