Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/infallibless/json-data-parser
json parser
https://github.com/infallibless/json-data-parser
discordwebhook json jsonparser parser telegram-bot
Last synced: 6 days ago
JSON representation
json parser
- Host: GitHub
- URL: https://github.com/infallibless/json-data-parser
- Owner: infallibless
- Created: 2024-11-01T22:46:41.000Z (6 days ago)
- Default Branch: main
- Last Pushed: 2024-11-01T22:48:54.000Z (6 days ago)
- Last Synced: 2024-11-01T23:25:17.489Z (6 days ago)
- Topics: discordwebhook, json, jsonparser, parser, telegram-bot
- Language: JavaScript
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# json-data-parser
json-data-parser is a simple Node.js bot that parses JSON data from a file, sends notifications via Discord and Telegram, and can save the parsed data to a text file.
## Features
- Reads and parses JSON data from a file named `me.json`.
- Sends parsed data to Discord via a specified webhook.
- Sends parsed data to a Telegram chat using a bot token and chat ID.
- Offers the option to save the parsed data to a text file if no notification services are enabled.## Installation
1. Clone the repository:
```bash
git clone https://github.com/infalibless/json-data-parser.git
cd json-data-parser
```2. Install dependencies:
```bash
npm install axios
```3. Create a `config.json` file with your configurations:
```json
{
"discord": {
"enabled": true,
"webhook": "your_discord_webhook_url"
},
"telegram": {
"enabled": true,
"tkn": "your_telegram_bot_token",
"chatid": "your_chat_id"
},
"txtonline": true
}
```4. Create a `me.json` file with the JSON data you want to parse.
## Usage
Run the bot with the following command:
```bash
node parser.js
```Follow the prompts to use the bot.
## Contributing
Feel free to submit issues or pull requests to improve this project.