Files
mcr-bot/README.md
Lightemerald 6c28e77aea Updated Script to V2
- New bot manager using timeout instead of schedules
 - Moved accounts to an accounts folder
 - New dynamic Updater
 - Improved VPN Importer to avoid duplicate
 - Switched back to master Bot
 - New config file
2023-06-20 17:14:12 +02:00

60 lines
1.4 KiB
Markdown

# README
This repo contains the script to manage multiple mcr bot on a single VM/Container.
## Structure
```bash
├── start.sh
├── setup-linux.sh
├── setup-vpn.sh
├── update.sh
├── Microsoft-Rewards-bot
│ ├── ms_rewards_farmer.py
│ ├── ...
├── accounts
│ ├── name1.json
│ ├── name2.json
│ ├── ...
├── vpn
│ ├── name1.ovpn
│ ├── name2.ovpn
│ ├── ...
```
## How to run
Start the setup script with either curl, wget or by pasting script content to your terminal.
```bash
curl -sSL https://git.justw.tf/Lightemerald/mcr-bot/raw/branch/main/setup-linux.sh | bash
```
```bash
wget -O- https://git.justw.tf/Lightemerald/mcr-bot/raw/branch/main/setup-linux.sh | bash
```
Add your VPN files (.ovpn) to `./vpn` then run
```bash
bash setup-vpn.sh
```
Copy your accounts file named as [vpnname].json in the Bot folder then run
```bash
bash start.sh
```
### If using LXC
Execute this command to allow the container to use TUN kernel module (needed for openvpn), 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
## How to update
```bash
bash update.sh
```