https://github.com/gmpsankalpa/website-status
Website status check script
https://github.com/gmpsankalpa/website-status
javascript npm-module
Last synced: 3 months ago
JSON representation
Website status check script
- Host: GitHub
- URL: https://github.com/gmpsankalpa/website-status
- Owner: gmpsankalpa
- License: mit
- Created: 2024-05-15T15:42:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-16T13:45:07.000Z (about 1 year ago)
- Last Synced: 2025-01-17T08:32:03.417Z (5 months ago)
- Topics: javascript, npm-module
- Language: JavaScript
- Homepage: https://gmpsankalpa.xyz
- Size: 879 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Website Status Checker
This Node.js script checks the status of a website and sends notifications to a Discord webhook if the website is down or encounters an error.
## Table of Contents
- [Prerequisites](#introduction)
- [Installation](#installation)
- [Usage](#usage)
- [Customization](#customization)
- [Contributing](#contributing)
- [License](#license)## Prerequisites
- Node.js installed on your system
- npm (Node.js package manager) to install dependencies
- A Discord webhook URL to send notifications to## Installation
1. Clone this repository or download the `index.js` file.
2. Navigate to the directory containing the script in your terminal.
3. Install dependencies using npm:
```bash
npm install4. Edit the `websiteUrl` and `discordWebhookUrl` variables in the `index.js` file with your website URL and Discord webhook URL respectively.
## Usage
- Run the script using Node.js:
```bash
npm startThe script will continuously check the status of the website at the specified interval (default is every 1 minute) and send notifications to the Discord webhook if the website is down or encounters an error.
- For development purposes, you can run the script using nodemon:
```bash
npm run dev## Customization
- You can customize the interval of website status checks by modifying the setInterval function call in the script.
- For advanced customization, you can modify the formatting of Discord messages in the formatDiscordMessage function.
## Contributing
Contributions to this project are welcome. If you'd like to contribute, please follow these steps:
1. Fork the repository.
2. Create a new branch (`git checkout -b feature/your-feature-name`).
3. Make your changes.
4. Commit your changes (`git commit -am 'Add some feature'`).
5. Push to the branch (`git push origin feature/your-feature-name`).
6. Create a new Pull Request.## License
This project is licensed under the [MIT](LICENSE) License.
---
Repo Details 🤙




Deploy status badge 🤖
[](https://app.netlify.com/sites/website-status/deploys)