The Interface of the fdb-spider, based on rocketchat
Find a file
2024-02-06 15:54:02 +01:00
roomhistories fixed bug for period checking, now already happended deadlines will not be printed with the room updates, not yet the automatic 2024-01-30 14:47:48 +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 finished name feature for addtags 2024-02-06 15:54:02 +01:00
new_message_file.txt finished name feature for addtags 2024-02-06 15:54:02 +01:00
README.md used different figlet output for README.md main header 2024-01-21 14:48:09 +00:00
requirements.txt added dateutil to requirements.txt, added parsing the period from fdb-spider output 2024-01-22 14:25:28 +01:00

  __     _ _                     _     _                _       _            
 / _| __| | |__        ___ _ __ (_) __| | ___ _ __     (_)_ __ | |_ ___ _ __ 
| |_ / _` | '_ \ _____/ __| '_ \| |/ _` |/ _ \ '__|____| | '_ \| __/ _ \ '__|
|  _| (_| | |_) |_____\__ \ |_) | | (_| |  __/ | |_____| | | | | ||  __/ |   
|_|  \__,_|_.__/      |___/ .__/|_|\__,_|\___|_|       |_|_| |_|\__\___|_|   
                          |_|                                                
  __                
 / _| __ _  ___ ___ 
| |_ / _` |/ __/ _ \
|  _| (_| | (_|  __/
|_|  \__,_|\___\___|
                    
  1. Introduction
  2. Installation
  3. Usage

Introduction

The fdb-spider-interface is an interface for the fdb-spider. It is based on rocketchat, and displaying entries such as programming tag search can be done within any rocketchat client.

In future, the bot based code will migrate from rocketchat to matrix.

Installation

To use this spider, you 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

which you want to be the room in which you talk to the interface bot.

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 rocketchat configuration the fdb-spider-interface will get too many requests errors and stop working eventually.

Usage

Important Commands

There is actually only one important command to remember and that is

printcommands

That will output all available commands with explanations.

Generally, you can create new tag search "rooms" where the interface will run updates.

createroom

will create a room where you can monitor your custom tag based search outputs.

printrooms

will print all configured rooms,

addtags 

will add tags to the tag search of a specific room, etc.

Specify the update interval and time in config.ini, and choose it appropriate to your updates you give to the fdb-spider output (by running the fdb-spider for example once a week with cron)