Skip to content

A Telegram bot to edit .srt files faster.

License

Notifications You must be signed in to change notification settings

MrJico/dot-srt-editor

Repository files navigation

.srt editor

.srt editor

A Telegram bot to edit .srt files faster.

Running

  1. Clone the repository:
git clone https://github.com/shafilm/dot-srt-editor.git
  1. Install requirements:
pip install -r requirements.txt
  1. Copy example.env to .env.

  2. Open .env and put your credentials:

    TOKEN a bot token from @BotFather.

    SUPERUSERS a list of user IDs who can upload files.

    LANGUAGE either en (for English) or ckb (for Kurdish).

    LOG_CHAT a chat ID to send errors to.

  3. Run the main file:

python main.py

Usage

  1. A super user sends a .srt file to the bot.
  2. Someone opens it with the /open command:
/open some_uploaded_file.srt
  1. The bot will send the lines in that file one by one and the user can send a replacement for it.
  2. The file is saved whenever the bot recieves a replacement from the user.

Other commands

Command Description
/prev moves to the previous line
/next moves to the next line
/new add a new line
/line X moves to line X
/search X searches for X and returns first 10 results
/empty makes the current line empty
/download sends the opened file with all of the made edits

💫️ Credits

  • Hama Shareef
  • Sivar Mhamad
  • Ara Walker
  • Roj Serbest

About

A Telegram bot to edit .srt files faster.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published