44 lines
1020 B
Markdown
44 lines
1020 B
Markdown
# README
|
|
|
|
This repo contains the script to manage multiple mcr bot on a single VM/Container.
|
|
|
|
## Structure
|
|
|
|
```bash
|
|
├── start.sh
|
|
├── setup-fedora.sh
|
|
├── setup-vpn.sh
|
|
│ ├── Microsoft-Rewards-bot
|
|
│ │ ├── ms_rewards_farmer.py
|
|
│ │ ├── vpnname.json
|
|
│ ├── vpn
|
|
│ │ ├── vpnname.ovpn
|
|
```
|
|
|
|
## How to run
|
|
|
|
Clone the project
|
|
|
|
```bash
|
|
curl -sSL https://git.justw.tf/Lightemerald/mcr-bot/raw/branch/main/setup-fedora.sh | bash
|
|
```
|
|
|
|
Add your VPN files to `./vpn` then run
|
|
|
|
```bash
|
|
sh setup-vpn.sh
|
|
```
|
|
|
|
Copy your accounts file named as [vpnname].json in the Bot then run
|
|
|
|
```bash
|
|
sh start.sh
|
|
```
|
|
|
|
### If using LXC
|
|
|
|
Execute this command to allow the container to use TUN kernel module, replace [id_ct] with the LXC id in proxmox
|
|
```bash
|
|
echo -e "lxc.cgroup.devices.allow: c 10:200 rwm\nlxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file" >> /etc/pve/lxc/[id_ct].conf
|
|
```
|
|
ps: container must be powered off before and restarted only after |