mirror of
https://github.com/PC-Admin/matrix-moderation-tool.git
synced 2024-12-19 07:00:27 -05:00
update readme, stop state events export function from recursing
This commit is contained in:
parent
1aea8c7f93
commit
6e2e8a28d6
@ -4,7 +4,6 @@
|
||||
A Matrix moderation tool to make managing a Synapse server easier.
|
||||
|
||||
Contact me at [@michael:perthchat.org](https://matrix.to/#/@michael:perthchat.org) if you get stuck or have an edit in mind.
|
||||
if it
|
||||
|
||||
|
||||
***
|
||||
@ -66,6 +65,10 @@ A few of the commands will not work unless /_synapse/ is mapped to port 8008. He
|
||||
|
||||
You can also run the script locally on your server if you do not wish to map /_synapse/.
|
||||
|
||||
With the popular [matrix-docker-ansible-deploy](https://github.com/spantaleev/matrix-docker-ansible-deploy) playbook you can expose this API interface by enabling 'Synapse Admin':
|
||||
|
||||
`matrix_synapse_admin_enabled: true`
|
||||
|
||||
|
||||
***
|
||||
## Roadmap
|
||||
|
@ -35,7 +35,6 @@ def export_room_state(preset_internal_ID):
|
||||
elif preset_internal_ID != '':
|
||||
internal_ID = preset_internal_ID
|
||||
|
||||
os.chdir(current_directory)
|
||||
room_dir = current_directory + "/state_events"
|
||||
os.makedirs(room_dir, exist_ok=True)
|
||||
os.chdir(room_dir)
|
||||
@ -45,6 +44,7 @@ def export_room_state(preset_internal_ID):
|
||||
print("\n" + command_string + "\n")
|
||||
process = subprocess.run([command_string], shell=True, stdout=subprocess.PIPE, universal_newlines=True)
|
||||
output = process.stdout
|
||||
os.chdir(current_directory)
|
||||
print(output)
|
||||
|
||||
# Example
|
||||
|
Loading…
Reference in New Issue
Block a user