JWLMergeBot

Introduction

🤖 [JWLMergeBot](http://t.me/JWLMergeBot is a Telegram bot meant to merge two JW Library backup file into a single one.

Maybe you are using JW Library from your phone 📱, your computer 💻 and your tablet 📱.
But, since the data is not synchronized, you have to choose beetween:

  • Keep your notes separated between devices (not so good😫)
  • Backup and restore your most recent backup before to use the app (but you regularly forget which device has the newest data 🤦‍♂️)

With this bot, you have to remember nothing at all. Just use the app. And when you remeber to do it, simply send the backup to the bot from one of your device 📩.
It will keep a repository of your notes, highlights, bookmarks, ... and it will merge your files as you send them to it.

Credits

The bot is based on this project of Antony Corbett and it uses this .NET Client to deal with the Telegram Bot API.
JW Library is a registered trademark of Watch Tower Bible and Tract Society of Pennsylvania.

Usage

  • Start a Telegram chat with [@JWLMergeBot](http://t.me/JWLMergeBot
  • Send the first .jwlibrary file
  • Send the second .jwlibrary file
  • Get the merged .jwlibrary file and restore it with JW Library

Disclaimer

The bot needs to process your backup files to works.
So, when you send the first backup file, this file is kept in the memory of a server.
When you send the second one, the bot merge it with the first one, and it keeps in memory the result.
Keep this in mind if you store sensitive informations in your notes.

Note: You can manually delete all your data with the /delete command. Or you can enable the option to delete all your data immediately after the merge with the /autodelete_on command.

If you don't want to send your backup to the JWLMergeBot server, you can set up yours. Just follow the next section.

Create your own JWLMergeBot

  • Create your bot with BotFather and get the bot token.
  • Clone this project with Visual Studio

Build it for Windows

  • Compile the project
  • Put the bot token in the config.json file (it must be located in the same directory of the executable)
  • Launch the bot or create a service with sc create

Build it for Raspbian

  • Compile the project with this command: dotnet publish -r linux-arm
  • Compile the SQLite library for the Raspberry. You have to:
  • Put the bot token in the config.json file (it must be located in the same directory of the executable)
  • Launch the bot or create a service with systemd
Edit
Pub: 14 Apr 2020 21:29 UTC
Views: 37