Skip to content

Commit

Permalink
clean up home directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Nubuki-all committed Dec 23, 2024
1 parent 777b21f commit e2c8e9d
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 131 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@ help - same as start
- Install Docker
- Clone repository to your preferred location
- Ensure you are in the proper directory with Dockerfile and .env file present
- For a faster build run (optional):
- `python3 update_docker.py`
- For a faster build run (optional) (don't run from the scripts directory):
- `python3 scripts/update_docker.py`
(Or manually edit Dockerfile, instructions provided there.
To undo, run:
`python3 update_docker.py undo`
`python3 scripts/update_docker.py undo`
- Run:
- `docker build . -t enc`
- `docker run enc`

**Without Docker:**
- Install required dependencies check [Dockerfile](Dockerfile) or preferably [local_deploy.sh](local_deploy.sh) for inspiration (I no longer maintain the local_deploy script so run at your own risk)
- Install required dependencies check [Dockerfile](Dockerfile) or preferably [local_deploy.sh](scripts/local_deploy.sh) for inspiration (I no longer maintain the local_deploy script so run at your own risk)
- python3.10, ffmpeg, ffprobe & mediainfo is required
- Run:
- `bash run.sh` _To start bot normally_
Expand Down
86 changes: 0 additions & 86 deletions app.json

This file was deleted.

30 changes: 0 additions & 30 deletions azure-pipelines.yml

This file was deleted.

12 changes: 6 additions & 6 deletions bot/utils/bot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,24 +716,24 @@ async def auto_rename(

async def text_filter():
"""Read three filter (.txt) files and returns the contents"""
nft = Path("Namefilter.txt")
rft = Path("Releasefilter.txt")
rct = Path("Release_caption.txt")
nft = Path("filters/Namefilter.txt")
rft = Path("filters/Releasefilter.txt")
rct = Path("filters/Release_caption.txt")

if nft.is_file():
with open("Namefilter.txt", "r") as file:
with open(nft, "r") as file:
nf = file.read().strip()
file.close()
else:
nf = None
if rft.is_file():
with open("Releasefilter.txt", "r") as file:
with open(rft, "r") as file:
rf = file.read().strip()
file.close()
else:
rf = None
if rct.is_file():
with open("Release_caption.txt", "r") as file:
with open(rct, "r") as file:
rc = file.read().strip()
file.close()
else:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions heroku.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e2c8e9d

Please sign in to comment.