further small change to formatting of printcommands

This commit is contained in:
alpcentaur 2023-12-14 17:31:46 +01:00
parent a6dbb93e1d
commit 9b08db782a
2 changed files with 9 additions and 9 deletions

View file

@ -291,7 +291,7 @@ if __name__ == '__main__':
except:
answer = "after the command printtags, the second argument has to be the room id.. use printrooms and look up the id of the room you want to print the tags"
room_id_to_print_tags = 'NONE'
if room_id_to_print_tags not 'NONE':
if room_id_to_print_tags != 'NONE':
try:
room_file = open('rooms/' + room_id_to_print_tags + '.txt', 'r')
@ -313,30 +313,30 @@ if __name__ == '__main__':
To print all available rooms and their configuration, use
command : `printrooms`
--------------------------------------------------------------
-----------------------------------------------------------------------------------------
To print all available fdbs, use
`printfdbs`
--------------------------------------------------------------
-----------------------------------------------------------------------------------------
To update all rooms use
`updaterooms`
--------------------------------------------------------------
-----------------------------------------------------------------------------------------
To update one room use the room_id from the output of printrooms:
command : `updaterooms <room-id>`
example : `updaterooms 6572012bebb39dd248d08320`
--------------------------------------------------------------
-----------------------------------------------------------------------------------------
To create a room use following command, but be sure to not have spaces in your lists,
as a space indicates a new command argument:
command : `createroom <room-name> <list-fdbs> <list-tags>`
example : `createroom room-test-1 ['giz','fdb2'] ['tag1','tag2','tag3']`
--------------------------------------------------------------
-----------------------------------------------------------------------------------------
To delete a room use
command : `deleteroom <room-id>`
example : `deleteroom 6572012bebb39dd248d08320`
--------------------------------------------------------------
-----------------------------------------------------------------------------------------
To print the tags of a room use
command : `printtags <room-id>`
example : `printtags 6572012bebb39dd248d08320`
--------------------------------------------------------------
-----------------------------------------------------------------------------------------
To add tags to the existing tags use
command : `addtags <room-id> <tag-list-without-spaces>`
example : `updaterooms 6572012bebb39dd248d08320 ['tag1','tag2','tag3']`

View file

@ -1 +1 @@
printrooms§%§%93Nwjiq6LmbdtDpqt
printcommands§%§%MXq6Hy2tfbXL3oR7h