Browse Source

added two more functions to printcommands output, also changed the formatting a bit

master
alpcentaur 11 months ago
parent
commit
a6dbb93e1d
2 changed files with 23 additions and 7 deletions
  1. +22
    -6
      fdb_spider_interface.py
  2. +1
    -1
      new_message_file.txt

+ 22
- 6
fdb_spider_interface.py View File

@ -312,18 +312,34 @@ if __name__ == '__main__':
answer = """
To print all available rooms and their configuration, use
`printrooms`
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:
`updaterooms <room_id>`
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:
`createroom <room-name> <list-fdbs> <list-tags>`
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
`deleteroom <room_id>`
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 @@
updaterooms 657b0a50ebb39dd248d2e11b§%§%4pTTKiFWfhTg24hGb
printrooms§%§%93Nwjiq6LmbdtDpqt

Loading…
Cancel
Save