Lupin, an Open Source Telegram Python Chat Bot to supercharge your LogSeq with great features
725
I have not altered the code, I only created the container and altered the README below to fit the container's instructions. For more information on the project please visit the original source.
Lupin is an Open Source Telegram Python Chat Bot build to supercharge your LogSeq with great features like Interstitial Journaling | Flashcards | Brainmaps | PDF / Web Annotations | {TODO; DOING; LATER} | Bookmarks | Images upload and more
There are two methods to deploy Lupin. You can install it manaully or your can use Docker. Either method will require that you place information in a config.ini file.
Assuming you are already using LogSeq & are familar with Python.
Lupin requires Python version >= 3.x
git clone https://github.com/akhater/Lupinpip install python-telegram-bot or pip3 install python-telegram-botpip install pyGitHub or pip3 install pyGitHubrequests library using pip install requests or pip3 install requestshttps://github.com/settings/tokensconfig.sample.ini to config.iniconfig.ini to fit your environmentpython main.py or python3 main.pyThe container is based off the official python 3 images.
The only requirement is that you have Docker installed.
Before pulling the container please follow these steps:
config.iniconfig.ini to fit your environmentNote: That if you do not change the time zone (TZ) your timestamp will reflect Eastern US Time (America/New_York). You can see a list of time zones here that way you can have the timestamp reflect a time zone of your choosing.
You can run an instance of Lupin where your config.ini is located by typing this in your terminal:
docker run -d \
--name lupin \
--mount type=bind,source=$(pwd)/config.ini,target=/app/config.ini \
-e TZ=America/New_York \
--restart unless-stopped \
digitalknk/lupin
You could also create a docker-compose.yaml file and copy/paste the text from below or download it from the repo, save it where your config.ini is located. You can then deploy Lupin by typing this in your terminal docker-compose up -d in the same directory.
version: "3.2"
services:
lupin:
container_name: lupin
image: digitalknk/lupin
volumes:
- type: bind
source: ./config.ini
target: /app/config.ini
environment:
TZ: America/New_York
restart: unless-stopped
When a new update to the container is released, you can update your pulled image by running one of these depending your deployment strategy where your config.ini is located:
If you used the docker run command:
docker stop lupin
docker rm lupin
docker run -d \
--name lupin \
--mount type=bind,source=$(pwd)/config.ini,target=/app/config.ini \
-e TZ=America/New_York \
--restart unless-stopped \
digitalknk/lupin
If a docker-compose.yaml is used:
docker-compose stop
docker-compose rm -f
docker-compose pull
docker-compose up -d
/anno uri to import all your annotations from for the uri from HypothesisSupported format for flaschards is
## #flashcardtag
### Question 1
#### answer line 1
#### answer line 2
### Question 2
#### Answer 2
Flashcard tag is customizable Algorithm used is SuperMemo2 Triggers are /tsr import --> scan - import - update your flashcards /tsr x -> retrieve x flashcards from you pending pool /tsr -> retrieve the default number of cards set in your config .ini file Below entry in config.ini specifies you default number of flashcards
[TimeSpacedRepetion]
flashcardDailyGoal=10
Before being able to use this feature you need to name your various themes in the format ThemeName.custom.css and place them in the /logseq folder
| Command | Description |
|---|---|
| /start | Just a greeting |
| /uptime | returns Lupin Uptime |
| /ver | returns Lupin running Version |
| /help | help command (WIP) |
| /anno URL | Import hypothesis annotations from URL |
| /importFC | Imports your Flashcards into Lupin |
| /srs import | alias of /importFC |
| /srs x | starts a round of SRS for x flashcards |
| /getMM pageTitle | Generates a dynamic MindMap for pageTitle |
| /pullNow | Pulls all pages from your Git for fast access |
| /themes | calls the theme changer |
| /encryptAll | Encrypts all your pages with AGE keys |
| /decryptAll | Decrypts all your pages back to clear text |
Imported Hypothesis notes into LogSeq

Content type
Image
Digest
Size
47.9 MB
Last updated
over 5 years ago
docker pull digitalknk/lupin