Skip to content

Commit

Permalink
Update 4 files
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Oct 7, 2023
1 parent 387b5a9 commit 46a3c80
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ downloads
__pycache__
kreacher_env
unknown_errors.txt
kreacher.bot.session
kreacher.bot.session-journal
kreacher.client.session
kreacher.client.session-journal
*.session
*.session-journal

.env
:memory:.session
/.codesandbox
12 changes: 12 additions & 0 deletions Dockerfile
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"]
28 changes: 28 additions & 0 deletions Makefile
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

4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version: "1"
services:
app:
build: .

0 comments on commit 46a3c80

Please sign in to comment.