Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webd97/ebon-bot
https://github.com/webd97/ebon-bot
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/webd97/ebon-bot
- Owner: webD97
- License: mit
- Created: 2022-09-21T19:57:31.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-13T09:17:40.000Z (over 1 year ago)
- Last Synced: 2024-10-10T22:31:09.182Z (about 1 month ago)
- Language: TypeScript
- Size: 137 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eBon Bot
Let's just call it _ebb_ - it's simpler. _ebb_ is a personal tool that connect to my mailbox, watches an inbox for REWE eBon mails, downloads the eBon PDF file from the attachment, parses it using [rewe-ebon-parser](https://github.com/webD97/rewe-ebon-parser), dumps the PDF file and the generated JSON file into my Nextcloud and sends me a summary of my purchase via a Telegram bot.Does too many things in one package and is probably not useful for anyone else but it might still be interesting to the public. So here we go :)
## Usage
```sh
EBB_IMAP_HOST="outlook.office365.com" \
EBB_IMAP_USERNAME="[email protected]" \
EBB_IMAP_PASSWORD="secret" \
EBB_IMAP_PORT="993" \
EBB_IMAP_BOX="Inbox/REWE eBon" \
EBB_NEXTCLOUD_SERVER_URL="https://mynextcloud.com" \
EBB_NEXTCLOUD_USERNAME="Someone" \
EBB_NEXTCLOUD_PASSWORD="secret" \
EBB_NEXTCLOUD_DIRECTORY="/Documents/eBons" \
EBB_TELEGRAM_BOT_TOKEN="token" \
EBB_TELEGRAM_API_ID="123456" \
EBB_TELEGRAM_API_HASH="abcdef" \
EBB_TELEGRAM_PEER="someone" \
./ebb
```