Skip to content

avijitdas126/Local-Weather-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Weather bot is a Telegrem bot

Bot Command:

  1. /now - Know your local weather immediately.
  2. /weather [Name of another city] - Know the weather of another city immediately.
  3. /setlocal [Name of your local city] - Set your local city.

Avalative on telegram: @local_weather_checker_bot

How to use my 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

Tech Stack

  • Telegraf.js
  • Mongodb
  • Mongoose

Scan and use my bot and give feedback on this github's issues

qr code

About

Check your local or any city's weather

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors