hi can i run it on a linux server ? #12
-
hi mate |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hello, 1. Install Python 3 and pip on Ubuntu/DebianOpen your terminal and run the following commands to install Python 3 and pip: sudo apt update
sudo apt install python3 python3-pip -y
pip install requests colorlog 2. Install Git on Ubuntu/DebianRun the following command to install Git: sudo apt install git -y 3. Clone the RepositoryClone the repository using Git: git clone https://github.com/masterking32/MasterHamsterKombatBot 4. Edit main.pyNavigate to the cloned repository and edit cd MasterHamsterKombatBot
nano main.py Make the necessary changes, then save and close the file. 5. Run Python as a ServiceTo run your Python script as a service, follow these steps: Create a service file:sudo nano /etc/systemd/system/masterhamsterbot.service Add the following content to the service file: [Unit]
Description=MasterHamsterBot
After=network.target
[Service]
ExecStart=/usr/bin/python3 /path/to/your/main.py
WorkingDirectory=/path/to/your
StandardOutput=inherit
StandardError=inherit
Restart=always
User=your-username
[Install]
WantedBy=multi-user.target Replace /path/to/your/main.py with the actual path to your main.py file and your-username with your Linux username. Save and close the file, then reload the systemd manager configuration: sudo systemctl daemon-reload Enable and start the service: sudo systemctl enable masterhamsterbot
sudo systemctl start masterhamsterbot Check the status of your service: sudo systemctl status masterhamsterbot That's it! Your Python script should now be running as a service on your Linux server. |
Beta Was this translation helpful? Give feedback.
-
there is a way that i can add you to my telegram and you will help me ? |
Beta Was this translation helpful? Give feedback.
-
nvm my friend i did it :D [Master HamsterKombat Bot][INFO] [Account 1] Attempting to buy the best card... |
Beta Was this translation helpful? Give feedback.
-
Is it possible to install synology on a Nas server? If so, where can I find the manual? |
Beta Was this translation helpful? Give feedback.
Hello,
Yes, you can run this on a Linux server. Here are the steps:
1. Install Python 3 and pip on Ubuntu/Debian
Open your terminal and run the following commands to install Python 3 and pip:
2. Install Git on Ubuntu/Debian
Run the following command to install Git:
3. Clone the Repository
Clone the repository using Git:
4. Edit main.py
Navigate to the cloned repository and edit
main.py
to add your account details:cd MasterHamsterKombatBot nano main.py
Make the necessary changes, then save and close the file.
5. Run …