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.

99 lines
3.4 KiB

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