The Interface of the fdb-spider, based on rocketchat
Find a file
2024-01-16 22:43:08 +01:00
roomhistories ntags join syntax error resulted in exception for whole entry, is now fixed 2024-01-16 22:43:08 +01:00
.gitignore added room commands first structure 2023-12-05 17:18:48 +01:00
config_example.ini also added user_id of bot to config 2023-11-29 19:54:43 +01:00
fdb_spider_interface.py ntags join syntax error resulted in exception for whole entry, is now fixed 2024-01-16 22:43:08 +01:00
new_message_file.txt ntags join syntax error resulted in exception for whole entry, is now fixed 2024-01-16 22:43:08 +01:00
README.md added to README.md the info to configure bot in rocketchat instance 2023-12-15 14:48:30 +01:00
requirements.txt added updated pip freeze to requirements.txt 2023-12-15 12:51:00 +01:00


   ad88         88 88                                         88          88                                88                                            ad88
  d8"           88 88                                         ""          88                                ""              ,d                           d8"
  88            88 88                                                     88                                                88                           88
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,
  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
  88   8b       88 88       d8 """"""""  `"Y8ba,  88       d8 88 8b       88 8PP""""""" 88         """""""" 88 88       88  88   8PP""""""" 88           88    ,adPPPPP88 8b         8PP"""""""
  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
  88    `"8bbdP"Y8 8Y"Ybbd8"'           `"YbbdP"' 88`YbbdP"'  88  `"8bbdP"Y8  `"Ybbd8"' 88                  88 88       88  "Y888 `"Ybbd8"' 88           88    `"8bbdP"Y8  `"Ybbd8"'  `"Ybbd8"'
                                                  88
                                                  88                    

To use this spider, u need to have a Rocketchat Server.

On your Rocketchat Server, create a new user with the role bot. Put the right password and username in config.ini. Create a private channel, add the bot to the channel, then run the code

api = RocketChatAPI(settings={'username': botname, 'password': botpassword, 'domain': server_url})

rooms = api.get_private_rooms()

print(rooms)

From there, copy the room_id to

config.ini

For the bot_user_id run the commands

myinfo = api.get_my_info()
print(myinfo)

Information: It is important to change the settings for bots, otherwise with the standard conf the fdb-spider-interface does too many requests