Usluge is a service for finding service providers.
Usluge means service in Montenegrin.
Try it at http://usluge.io/
This project was created using Python Telegram Bot: Your first Bot tutorial.
python -m venv botenv/
source botenv/bin/activate
pip install -r requirements.txt
python bot_helpers/embed.py
source .env; python bot.py
This project exists as a bot on a vps
, run it by ssh
into the repo
ssh -i /Users/tomiwa/.ssh/id_rsa_digitalocean [email protected] ; cd usluge ; python bot.py
If file is only on local machine:
scp -i /Users/tomiwa/.ssh/id_rsa_digitalocean /Users/tomiwa/Desktop/tomiwa/code/usluge/.env [email protected]:/root/usluge
scp -i /Users/tomiwa/.ssh/id_rsa_digitalocean /Users/tomiwa/Desktop/tomiwa/code/usluge/utils/taxi.py [email protected]:/root/usluge
- "Close your process (ctrl + c)": The process currently running in the terminal needs to be stopped. This is done by pressing 'ctrl + c' in the terminal window.
- "Write 'screen'": This is the command to start a new screen session. You simply type 'screen' into the terminal and press 'Enter'
- "Press enter until you basically get the terminal back": When you start a new screen session, you might see some introductory information. Press 'Enter' to clear this and get back to the command prompt
- "Then run the process": Now you should start your Python process again within this new screen session
- "Then Ctrl + a": This is the command used in Screen to indicate that you're about to enter a command for Screen itself, rather than the process running within Screen
- "And then D": After 'ctrl + a', pressing 'D' tells Screen to detach the current session. This means that the session will keep running, but you're no longer actively viewing it in your terminal. This is how you can keep the Python process running even after closing the terminal window
- In the future, you can reattach to this session by typing screen -r in the terminal, which will allow you to interact with your Python process again. ps aux | grep python
kill 1234