Autogenerate Discord invite link
Generates the link required to add the Bridge to a Discord server.
This commit is contained in:
parent
835c349275
commit
4aeeb5cf31
@ -40,6 +40,14 @@
|
||||
- set_fact:
|
||||
matrix_synapse_app_service_config_file_appservice_discord: '{{ matrix_appservice_discord_base_path }}/discord-registration.yml'
|
||||
|
||||
- stat:
|
||||
path: "{{ matrix_appservice_discord_base_path }}/invite_link"
|
||||
register: appservice_discord_link_generated
|
||||
|
||||
- name: Generate your discord invite link invite link
|
||||
shell: /usr/bin/docker run --rm --name matrix-appservice-discord-link-gen -v {{ matrix_appservice_discord_base_path }}:/data -w /data {{ matrix_appservice_discord_docker_image }} /bin/sh -c "node .././build/tools/addbot.js > invite_link"
|
||||
when: "matrix_appservice_discord_enabled and appservice_discord_link_generated.stat.exists == False"
|
||||
|
||||
- set_fact:
|
||||
matrix_synapse_container_additional_volumes: >
|
||||
{{ matrix_synapse_container_additional_volumes }}
|
||||
|
Loading…
Reference in New Issue
Block a user