Browse Source

further small change to formatting of printcommands

master
alpcentaur 11 months ago
parent
commit
9b08db782a
2 changed files with 9 additions and 9 deletions
  1. +8
    -8
      fdb_spider_interface.py
  2. +1
    -1
      new_message_file.txt

+ 8
- 8
fdb_spider_interface.py 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']`

+ 1
- 1
new_message_file.txt View File

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

Loading…
Cancel
Save