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
- reserve
- config
squadjs:
admin_ping: true
members:
- name: Kinsher
comment: Server Administrator
@ -61,6 +63,8 @@ all:
steam64: 76561198855097026
- name: SrAdmin
squadjs:
admin_ping: true
permissions:
- changemap
- balance
@ -122,6 +126,8 @@ all:
steam64: 76561198107367726
- name: JrAdmin
squadjs:
admin_ping: true
permissions:
- balance
- chat

View File

@ -24,7 +24,7 @@
"discord": "{{ server.secrets.squadjs_discord_token }}",
"sqlite": {
"dialect": "sqlite",
"storage": "/home/steam/SquadJS/data/squadjs-data.sqlite"
"storage": "/home/steam/SquadJS/data nd//squadjs-data.sqlite"
}
},
"plugins": [
@ -93,8 +93,14 @@
"ignoreChats": [],
"ignorePhrases": [],
"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": [
"Odin"
{% for group in _pingable_groups %}
"{{ group.name }}"{{ ", " if not loop.last else "" }}
{% endfor %}
],
"pingDelay": 60000,
"color": 16761867,