Re: [Gancio-list] Plugin system and bridges to other platfor…

Nachricht löschen

Nachricht beantworten
Autor: lesion
Datum:  
To: gancio-list
Betreff: Re: [Gancio-list] Plugin system and bridges to other platforms
On Thu, Jun 30, 2022 at 06:49:32PM +0200, fadelkon wrote:
>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


this is super

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


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


support for plugins are at an early stage. we can think to implement a
page in admin panel to manage them (enable / disable) and to expose
a list of settings declared by the plugin itself (a map like name:type,
in your case would be something like channel:string).
but I really don't want the plugins to become a catch-all thing (I'm
thinking at wordpress theme for example!!).


>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?


this is on your own. you can create your own sqlite db in this case.

>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?


this could be easily implemented


>Salut! And thank you all ^^
>fadel


ciaooo

>--
>Gancio-list mailing list
>Gancio-list@???
>https://www.autistici.org/mailman/listinfo/gancio-list