1
0
Fork
You've already forked pdf-slicing-bot
0
No description
  • Python 84.4%
  • Shell 15.6%
2024年05月09日 18:43:46 +02:00
src add first version of the bot 2024年01月06日 00:44:15 +01:00
.gitignore ignore stuff 2024年01月06日 00:40:15 +01:00
LICENSE Initial commit 2024年01月05日 22:09:46 +00:00
poetry.lock reduse min python version 2024年05月09日 18:43:46 +02:00
pyproject.toml reduse min python version 2024年05月09日 18:43:46 +02:00
README.md add licensing 2024年01月06日 00:47:08 +01:00

pdf-slicing-bot

Requirements

This project is designed to run on a linux system.

  • have pdftk installed for pdf operations
  • have poetry installed for dependency management
    • install the python dependencies via poetry
  • have tectonic installed for latex compilation
  • have git installed

create files

Create the file src/tex_consts.sh with the content:

#!/bin/bash

TEX_FILENAME="<name of the tex file without .tex extension>" # e.g. TEX_FILENAME="main"
TEX_PATH="path/to/the/latex/repo"

Create the file src/tokens.py with the content:

from typing import Final
# my Telegram user id
ALLOWED_USER: Final[int] = -1234567890
# token of my Telegram bot
TOKEN: Final[str] = "<my bot token>"

usage

poetry shell
cd src
python bot.py

license

This project is licensed under LGPLv3.0, see also LICENSE