- Clone the repository:
git clone https://github.com/shafilm/dot-srt-editor.git
- Install requirements:
pip install -r requirements.txt
-
Copy
example.env
to.env
. -
Open
.env
and put your credentials:TOKEN
a bot token from @BotFather.SUPERUSERS
a list of user IDs who can upload files.LANGUAGE
eitheren
(for English) orckb
(for Kurdish).LOG_CHAT
a chat ID to send errors to. -
Run the main file:
python main.py
- A super user sends a
.srt
file to the bot. - Someone opens it with the
/open
command:
/open some_uploaded_file.srt
- The bot will send the lines in that file one by one and the user can send a replacement for it.
- The file is saved whenever the bot recieves a replacement from the user.
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 |
- Hama Shareef
- Sivar Mhamad
- Ara Walker
- Roj Serbest