diff --git a/README.md b/README.md index 41d05c5ad..8a6ec5461 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,7 @@ You can run your bot without this first, which then on the first run, it will pr - `DISABLE_SOMETHING_WRONG_ALERT`: [true|false] - Default: `false`. My custom - Used to notify owner if your bot has a queue problem/full inventory/low in pure (if Autokeys is on). - `DISABLE_CRAFTWEAPON_AS_CURRENCY`: [true|false] - Default: `false`. Set it as `true` if you don't want to set craft weapons as currency (0.05 ref). - `DISABLE_ADD_FRIENDS`: [true|false] - Default: `false`. Set to `true` if you don't want people to add your bot (not recommended). +- `DISABLE_GROUPS_INVITE`: [true|false] - Default: `false`. Set to `true` if you don't want your bot to invite people to join groups **(You still need to have at least 1 group ID in the `GROUPS` array)**. - `DISABLE_CHECK_USES_DUELING_MINI_GAME`: [true|false] - Default: `false`. Set to `true` if you want your bot to buy Dueling Mini-Game of regardless of how many uses left. - `DISABLE_CHECK_USES_NOISE_MAKER`: [true|false] - Default: `false`. Set to `true` if you want your bot to accept Noise Maker that is not 25 Uses. diff --git a/src/classes/MyHandler.ts b/src/classes/MyHandler.ts index d76f2738b..0ff14dc44 100644 --- a/src/classes/MyHandler.ts +++ b/src/classes/MyHandler.ts @@ -2223,6 +2223,10 @@ Autokeys status:- } private inviteToGroups(steamID: SteamID | string): void { + if (process.env.DISABLE_GROUPS_INVITE === 'true') { + // You still need to include the group ID in your env. + return; + } this.bot.groups.inviteToGroups(steamID, this.groups); } diff --git a/template-three-bots.ecosystem.json b/template-three-bots.ecosystem.json index 268c5d532..c0e5b9169 100644 --- a/template-three-bots.ecosystem.json +++ b/template-three-bots.ecosystem.json @@ -44,6 +44,7 @@ "DISABLE_SOMETHING_WRONG_ALERT": false, "DISABLE_CRAFTWEAPON_AS_CURRENCY": false, "DISABLE_ADD_FRIENDS": false, + "DISABLE_GROUPS_INVITE": false, "DISABLE_CHECK_USES_DUELING_MINI_GAME": false, "DISABLE_CHECK_USES_NOISE_MAKER": false, @@ -190,6 +191,7 @@ "DISABLE_SOMETHING_WRONG_ALERT": false, "DISABLE_CRAFTWEAPON_AS_CURRENCY": false, "DISABLE_ADD_FRIENDS": false, + "DISABLE_GROUPS_INVITE": false, "DISABLE_CHECK_USES_DUELING_MINI_GAME": false, "DISABLE_CHECK_USES_NOISE_MAKER": false, @@ -336,6 +338,7 @@ "DISABLE_SOMETHING_WRONG_ALERT": false, "DISABLE_CRAFTWEAPON_AS_CURRENCY": false, "DISABLE_ADD_FRIENDS": false, + "DISABLE_GROUPS_INVITE": false, "DISABLE_CHECK_USES_DUELING_MINI_GAME": false, "DISABLE_CHECK_USES_NOISE_MAKER": false, diff --git a/template-two-bots.ecosystem.json b/template-two-bots.ecosystem.json index ce961fe7a..c1a743d23 100644 --- a/template-two-bots.ecosystem.json +++ b/template-two-bots.ecosystem.json @@ -44,6 +44,7 @@ "DISABLE_SOMETHING_WRONG_ALERT": false, "DISABLE_CRAFTWEAPON_AS_CURRENCY": false, "DISABLE_ADD_FRIENDS": false, + "DISABLE_GROUPS_INVITE": false, "DISABLE_CHECK_USES_DUELING_MINI_GAME": false, "DISABLE_CHECK_USES_NOISE_MAKER": false, @@ -190,6 +191,7 @@ "DISABLE_SOMETHING_WRONG_ALERT": false, "DISABLE_CRAFTWEAPON_AS_CURRENCY": false, "DISABLE_ADD_FRIENDS": false, + "DISABLE_GROUPS_INVITE": false, "DISABLE_CHECK_USES_DUELING_MINI_GAME": false, "DISABLE_CHECK_USES_NOISE_MAKER": false, diff --git a/template.ecosystem.json b/template.ecosystem.json index 57d6bd93f..f9e9385a2 100644 --- a/template.ecosystem.json +++ b/template.ecosystem.json @@ -44,6 +44,7 @@ "DISABLE_SOMETHING_WRONG_ALERT": false, "DISABLE_CRAFTWEAPON_AS_CURRENCY": false, "DISABLE_ADD_FRIENDS": false, + "DISABLE_GROUPS_INVITE": false, "DISABLE_CHECK_USES_DUELING_MINI_GAME": false, "DISABLE_CHECK_USES_NOISE_MAKER": false, diff --git a/template.env b/template.env index 8a9f615cb..25a5ed7ac 100644 --- a/template.env +++ b/template.env @@ -31,6 +31,7 @@ DISABLE_MESSAGES=false DISABLE_SOMETHING_WRONG_ALERT=false DISABLE_CRAFTWEAPON_AS_CURRENCY=false DISABLE_ADD_FRIENDS=false +DISABLE_GROUPS_INVITE=false DISABLE_CHECK_USES_DUELING_MINI_GAME=false DISABLE_CHECK_USES_NOISE_MAKER=false