wabarc / wayback

An archiving tool with an IM-style interface that prioritizes privacy and accessibility, integrated with various archival services including Internet Archive, archive.today, IPFS, Telegraph, and file systems.
https://docs.wabarc.eu.org
GNU General Public License v3.0
1.7k stars 64 forks source link

Support customisation of Mastodon responses #524

Open decentral1se opened 2 weeks ago

decentral1se commented 2 weeks ago

Feature Request

Is your feature request related to a problem? Please describe.

I would like to be able to customise the response of the bot on Mastodon.

Describe the solution you'd like

A template/format string I can use in the config to customise the response.

Describe alternatives you've considered

None besides using the default.

Teachability, Documentation, Adoption, Migration Strategy

WAYBACK_MASTODON_REPLYTEXT="..."

I'm not sure how you'd template this out tho 🤔 In this text I should be able to place some "variables" corresponding to what I expect to come out in the reply. E.g. "$ia" for an internet archive link?

waybackarchiver commented 2 weeks ago

Do you mean that customising the response text "URL no found" when no URL is archived?

decentral1se commented 1 week ago

@waybackarchiver I mean the default result response with the links?

waybackarchiver commented 1 week ago

Not a bad idea, this allows more flexibility in setting up messages to respond to. I can't say at the moment how much this is needed, and how to set the message length limits, which I understand are different for different instances of Mastodon.