feat: set squadjs pingable groups

This commit is contained in:
Price Hiller 2023-01-22 23:21:41 -06:00
parent be2632155f
commit 4fb2d349d0
2 changed files with 14 additions and 2 deletions

View File

@ -28,6 +28,8 @@ all:
- canseeadminchat - canseeadminchat
- reserve - reserve
- config - config
squadjs:
admin_ping: true
members: members:
- name: Kinsher - name: Kinsher
comment: Server Administrator comment: Server Administrator
@ -61,6 +63,8 @@ all:
steam64: 76561198855097026 steam64: 76561198855097026
- name: SrAdmin - name: SrAdmin
squadjs:
admin_ping: true
permissions: permissions:
- changemap - changemap
- balance - balance
@ -122,6 +126,8 @@ all:
steam64: 76561198107367726 steam64: 76561198107367726
- name: JrAdmin - name: JrAdmin
squadjs:
admin_ping: true
permissions: permissions:
- balance - balance
- chat - chat

View File

@ -24,7 +24,7 @@
"discord": "{{ server.secrets.squadjs_discord_token }}", "discord": "{{ server.secrets.squadjs_discord_token }}",
"sqlite": { "sqlite": {
"dialect": "sqlite", "dialect": "sqlite",
"storage": "/home/steam/SquadJS/data/squadjs-data.sqlite" "storage": "/home/steam/SquadJS/data nd//squadjs-data.sqlite"
} }
}, },
"plugins": [ "plugins": [
@ -93,8 +93,14 @@
"ignoreChats": [], "ignoreChats": [],
"ignorePhrases": [], "ignorePhrases": [],
"command": "admin", "command": "admin",
{% set _pingable_groups = [] %}
{% for group in server.groups %}
{%- if group.squadjs.admin_ping is defined and group.squadjs.admin_ping is true -%} {{ _pingable_groups.append(group) }} {% endif %}
{% endfor %}
"pingGroups": [ "pingGroups": [
"Odin" {% for group in _pingable_groups %}
"{{ group.name }}"{{ ", " if not loop.last else "" }}
{% endfor %}
], ],
"pingDelay": 60000, "pingDelay": 60000,
"color": 16761867, "color": 16761867,