AmauryCarrade / MastodonToTwitter

Mastodon <-> Twitter cross-poster.
MIT License
250 stars 41 forks source link

Add config file to allow behavior changes #52

Open ksonney opened 7 years ago

ksonney commented 7 years ago

As of the current codebase, in order the change the behavior of the app. you need t change at app source. It would be useful if the following could be set in a config file, and not source:

POST_ON_TWITTER POST_ON_MASTODON SPLIT_ON_TWITTER TOOT_VISIBILITY

ksonney commented 7 years ago

Bonus points if the config is read dynamically at runtime and the end user does not need to rebuild docker containers to get the new config.

remram44 commented 7 years ago

This is actually very useful since you can currently use multiple instances of MastodonToTwitter by running it from different directories. It looks for the credentials in the current directory. But you have to use the same config, since that is loaded from the script.

AmauryCarrade commented 6 years ago

The latest version supports a configuration file, but only one currently. I could update the script to allow the configuration file to be loaded from a custom path (e.g. using an environment variable).