Skip to content

WhatsApp Daily Updates Bot is a simple bot that sends daily weather information and advice.

Notifications You must be signed in to change notification settings

JefferMarcelino/whatsapp-daily-updates-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsApp Daily Updates Bot

Overview

WhatsApp Daily Updates Bot is a simple bot that sends daily weather information and advice, to your WhatsApp account.

Example

Getting Started

Prerequisites

Before you begin, make sure you have the following:

Template Message

Create a template message on WhatsApp called good_morning with the following content:

Good Morning {{1}}! 🌅

🌡Today's Temperature: {{2}}°C
🌡 Feels Like: {{3}}°C
☔ Chance of Rain: {{4}}% 

{{5}}

Installation

  1. Fork the repository clicking here
  2. Clone the repository:
git clone https://github.com/your-username/whatsapp-daily-updates-bot.git
  1. Navigate to the project directory:
cd whatsapp-daily-updates-bot
  1. Install dependencies:
npm install
  1. Create a .env file in the project root and add your credentials:
WEATHER_API=xxxxxxxxxxxxxxxxxxxxxxxx // your weather api key
LAT=xxxxxx  // your latitude
LON=xxxxxx // your longitude
WA_TOKEN=xxxxxxxxxxxxxxxxxxxxx // your Whatsapp token
WA_ID=xxxxxxxxxxxxxx // your whatsapp number id
OWNER_NAME="Jeffer Marcelino" // your name
OWNER_NUMBER="xxxxxxxx" // your whatsapp number that will receive the messages (includin the ddd, for example for mozambique 25884xxxxxxx)

Usage

Running Locally

To run the bot locally, ensure you have the .env file with valid credentials and execute:

npm start

Running on GitHub Actions

  1. Fork the repository.
  2. Set up the necessary GitHub Secrets in your repository settings using the credentials from the .env file.

Contributing

Contributions are welcome! If you have suggestions, feature requests, or find a bug, please open an issue or submit a pull request.

About

WhatsApp Daily Updates Bot is a simple bot that sends daily weather information and advice.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published