mirror of
https://github.com/AsgardEternal/Ubuntu-Ansible-Setup.git
synced 2024-09-28 14:04:23 -05:00
feat: set squadjs pingable groups
This commit is contained in:
parent
be2632155f
commit
4fb2d349d0
@ -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
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user