[Gancio-list] Plugin system and bridges to other platforms

Delete this message

Reply to this message
Autore: fadelkon
Data:  
To: gancio-list
Oggetto: [Gancio-list] Plugin system and bridges to other platforms
Bona tarda!

I'd like to try to develop a basic plugin to republish content to other
platforms (ideally for me: telegram, twitter, matrix), thus throwing the
bait to massive, privative sites that link back to the federated radical
internet :3

I could write an issue for that, but I prefer to open a discussion here,
if it's the place.

The docs in https://gancio.org/dev/plugins tell me that any javascript
file inside /plugins directory will be loaded and its hooks will be
executed. However, thinking of writing a republisher to telegram, some
doubts arise:

1. there's no interface from the admin panel to set up some ids or
options for each plugin, right? could it be somehting generic for each
plugin? For the telegram bridge, I would think of the channel/group id
and bot auth token, at least. This would help a lot in cases like
convoca.la where the instance webadmins are almost all different people
from those who manage the server internally

2. Is there a way to keep some kind of memory between method calls? for
instance, in order to modify a sent telegram post, one should keep all
(or some of the last sent) post ids. Same goes for batch sent, where do
I keep the content until it's time to send it everything? Is sqlite or
the database the answer? Is there some javascript object that persists
onEventCreate or onEventUpdate calls?

3. People from the sindominio docker side... how much trouble would it
be to have distinct plugin folders for each gancio installed? Any ideas
on how to make it simple?


Salut! And thank you all ^^
fadel