Switched bot to use nodejs.
This commit is contained in:
@@ -30,11 +30,11 @@ update_package_manager() {
|
||||
|
||||
install_requirements() {
|
||||
if command -v apt-get &>/dev/null; then
|
||||
sudo apt install chromium chromium-driver network-manager network-manager-openvpn openvpn python3 python3-pip python3-tk xvfb git wget curl unzip nano -y
|
||||
sudo apt install chromium chromium-driver network-manager network-manager-openvpn openvpn python3 python3-pip python3-tk xvfb git wget curl unzip nano nodejs -y
|
||||
elif command -v dnf &>/dev/null; then
|
||||
sudo dnf install chromium chrom*driver NetworkManager NetworkManager-openvpn openvpn python python*-pip python*-tkinter xorg-x11-server-Xvfb git wget unzip nano -y
|
||||
sudo dnf install chromium chrom*driver NetworkManager NetworkManager-openvpn openvpn python python*-pip python*-tkinter xorg-x11-server-Xvfb git wget unzip nano nodejs -y
|
||||
elif command -v pacman &>/dev/null; then
|
||||
sudo pacman -Sy chromium networkmanager networkmanager-openvpn openvpn python python-pip xorg-server-xvfb git curl wget unzip nano base-devel --noconfirm
|
||||
sudo pacman -Sy chromium networkmanager networkmanager-openvpn openvpn python python-pip xorg-server-xvfb git curl wget unzip nano base-devel nodejs --noconfirm
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ install_requirements
|
||||
git clone https://git.justw.tf/Lightemerald/mcr-bot && cd mcr-bot
|
||||
git clone https://git.justw.tf/Lightemerald/Microsoft-Rewards-bot && cd Microsoft-Rewards-bot && pip install -r requirements.txt
|
||||
cd .. && mkdir vpn && mkdir accounts
|
||||
cp ./config.txt.sample config.txt
|
||||
cp ./.env.sample .env
|
||||
chmod +x ./*.sh
|
||||
clear
|
||||
echo -e "Edit config.txt\nAdd your VPN files (.ovpn) in ./vpn\nThen run setup-vpn.sh\nAdd your accounts files (.json) with the same name as the VPN in ./accounts\nFinally, run start.sh"
|
||||
echo -e "Edit config.txt\nAdd your VPN files (.ovpn) in ./vpn\nThen run setup-vpn.sh\nAdd your accounts files (.json) with the same name as the VPN in ./accounts\nFinally, run 'npm start''"
|
||||
Reference in New Issue
Block a user