Skip to content

Commit

Permalink
Update 4 files
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Sep 19, 2023
1 parent c99128b commit 0dc7483
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 deletions.
38 changes: 38 additions & 0 deletions .codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "bash scripts/setup.sh"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.

"tasks": {
"format": {
"name": "format",
"command": "black ."
},
"install": {
"name": "install",
"command": "pip3 install --no-deps -U pytgcalls==3.0.0.dev24 tgcalls==3.0.0.dev6 && pip3 install -r requirements.txt",
"restartOn": {
"files": ["requirements.txt"]
}
},
"lint": {
"name": "lint",
"command": "pylint --recursive yes --jobs=4 ."
},
"run": {
"name": "run",
"command": "python3 -m bot",
"runAtStart": true
},
"session": {
"name": "session",
"command": "python3 ./session/session.py"
}
}
}
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ kreacher.client.session
kreacher.client.session-journal

.env
:memory:.session

# .codesandbox/
:memory:.session
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ google-images-search==1.4.6
numpy==1.24.4
opencv-python-headless==4.8.0.74
pillow==10.0.0
piper-tts==1.2.0
python-crontab==3.0.0
pyrogram==2.0.106
python-dotenv==1.0.0
Expand Down
4 changes: 2 additions & 2 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

pip3 install --no-deps -U pytgcalls==3.0.0.dev24 tgcalls==3.0.0.dev6 && pip3 install -r requirements.txt
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb; sudo apt-get -fy install
rm -rf google-chrome-stable_current_amd64.deb; sudo apt-get update
dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
rm -rf google-chrome-stable_current_amd64.deb; apt-get update

0 comments on commit 0dc7483

Please sign in to comment.