The Interface of the fdb-spider, based on rocketchat
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.3 KiB

  1. ```
  2. __ _ _ _ _ _ _
  3. / _| __| | |__ ___ _ __ (_) __| | ___ _ __ (_)_ __ | |_ ___ _ __
  4. | |_ / _` | '_ \ _____/ __| '_ \| |/ _` |/ _ \ '__|____| | '_ \| __/ _ \ '__|
  5. | _| (_| | |_) |_____\__ \ |_) | | (_| | __/ | |_____| | | | | || __/ |
  6. |_| \__,_|_.__/ |___/ .__/|_|\__,_|\___|_| |_|_| |_|\__\___|_|
  7. |_|
  8. __
  9. / _| __ _ ___ ___
  10. | |_ / _` |/ __/ _ \
  11. | _| (_| | (_| __/
  12. |_| \__,_|\___\___|
  13. ```
  14. 1. [Introduction](#introduction)
  15. 2. [Installation](#installation)
  16. 3. [Usage](#usage)
  17. * [Important commands](#important-commands)
  18. # Introduction
  19. The fdb-spider-interface is an interface for the fdb-spider.
  20. It is based on rocketchat, and displaying entries such as
  21. programming tag search can be done within any rocketchat client.
  22. In future, the bot based code will migrate from rocketchat to
  23. matrix.
  24. # Installation
  25. To use this spider, you need to have a Rocketchat Server.
  26. On your Rocketchat Server, create a new user with the role bot.
  27. Put the right password and username in config.ini.
  28. Create a private channel, add the bot to the channel, then run the code
  29. ```
  30. api = RocketChatAPI(settings={'username': botname, 'password': botpassword, 'domain': server_url})
  31. rooms = api.get_private_rooms()
  32. print(rooms)
  33. ```
  34. From there, copy the room_id to
  35. ```
  36. config.ini
  37. ```
  38. which you want to be the room in which you talk to the interface bot.
  39. For the bot_user_id run the commands
  40. ```
  41. myinfo = api.get_my_info()
  42. print(myinfo)
  43. ```
  44. Information: It is important to change the settings for bots, otherwise with the standard rocketchat configuration
  45. the fdb-spider-interface will get too many requests errors and stop
  46. working eventually.
  47. # Usage
  48. ## Important Commands
  49. There is actually only one important command to remember and that is
  50. ```
  51. printcommands
  52. ```
  53. That will output all available commands with explanations.
  54. Generally, you can create new tag search "rooms" where the interface
  55. will run updates.
  56. ```
  57. createroom
  58. ```
  59. will create a room where you can monitor your custom tag based
  60. search outputs.
  61. ```
  62. printrooms
  63. ```
  64. will print all configured rooms,
  65. ```
  66. addtags
  67. ```
  68. will add tags to the tag search of a specific room, etc.