-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
387b5a9
commit 46a3c80
Showing
4 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM python:3.11.5 | ||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install cron ffmpeg tree -y | ||
RUN pip3 install -U pip | ||
RUN pip3 install --upgrade pip | ||
COPY . /kreacher/ | ||
WORKDIR /kreacher/ | ||
RUN pip install --no-deps -U pytgcalls==3.0.0.dev24 tgcalls==3.0.0.dev6 && pip install -r requirements.txt | ||
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | ||
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install | ||
RUN rm -rf google-chrome-stable_current_amd64.deb; apt-get update | ||
ENTRYPOINT ["python", "-m", "bot"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# build in docker container | ||
docker_build: | ||
docker build . -t kreacher | ||
|
||
# run docker container | ||
docker_run: | ||
docker run kreacher | ||
|
||
# install deps required to run this project | ||
install: | ||
pip3 install --no-deps -U pytgcalls==3.0.0.dev24 tgcalls==3.0.0.dev6 && pip3 install -r requirements.txt | ||
|
||
# format files in the project | ||
format: | ||
black . --line-length 79 | ||
|
||
# lint all project looking for issues | ||
lint: | ||
pylint --recursive yes --jobs=4 . | ||
|
||
# generate string session of your telegram account | ||
session_string: | ||
python3 ./session/session.py | ||
|
||
# command to run bot in normal mode | ||
run_bot: | ||
python3 -m bot | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version: "1" | ||
services: | ||
app: | ||
build: . |