diff --git a/app/generator.py b/app/generator.py index d8c7e8a..5b718a6 100644 --- a/app/generator.py +++ b/app/generator.py @@ -136,15 +136,15 @@ class DonationsGenerator(Generator): super().__init__("donations", api) def generate(self, config, path): - donation_links = config["links"] if "links" in config else [] - donation_wallets = config["wallets"] if "wallets" in config else [] + links = config["links"] if "links" in config else [] + wallets = config["wallets"] if "wallets" in config else [] donation_path = join(path, f"donations.json") write_json( { - "links": donation_links, - "wallets": donation_wallets + "links": links, + "wallets": wallets }, donation_path ) diff --git a/config.example.json b/config.example.json index 1cb7432..63953cf 100644 --- a/config.example.json +++ b/config.example.json @@ -2,42 +2,113 @@ "configs": [ { "generators": [ - "release+contributor" + "releases", + "contributors" ], "repositories": [ - "user/repo" + "revanced/revanced-patches", + "revanced/revanced-integrations", + "revanced/revanced-manager" ] }, { "generators": [ "connections" ], - "connections": { - "website": "https://yourwebsite.com" - } + "connections": [ + { + "name": "Website", + "url": "https://revanced.app", + "preferred": true + }, + { + "name": "GitHub", + "url": "https://github.com/revanced", + "preferred": false + }, + { + "name": "Twitter", + "url": "https://twitter.com/revancedapp", + "preferred": false + }, + { + "name": "Discord", + "url": "https://revanced.app/discord", + "preferred": true + }, + { + "name": "Reddit", + "url": "https://www.reddit.com/r/revancedapp", + "preferred": false + }, + { + "name": "Telegram", + "url": "https://t.me/app_revanced", + "preferred": false + }, + { + "name": "YouTube", + "url": "https://www.youtube.com/@ReVanced", + "preferred": false + } + ] }, { "generators": [ "team" ], - "organization": "yourorg" + "organization": "revanced" }, { "generators": [ "donations" ], - "links": { - "Open Collective": "https://opencollective.com/yourteam", - "GitHub": "https://github.com/sponsors/yourteam" - }, - "wallets": { - "Bitcoin": "bitcoinaddress", - "Ethereum": "ethereumaddress" - } + "links": [ + { + "name": "Open Collective", + "url": "https://opencollective.com/revanced", + "preferred": true + }, + { + "name": "GitHub Sponsors", + "url": "https://github.com/sponsors/ReVanced", + "preferred": false + } + ], + "wallets": [ + { + "network": "Bitcoin", + "currency_code": "BTC", + "address": "bc1q4x8j6mt27y5gv0q625t8wkr87ruy8fprpy4v3f", + "preferred": false + }, + { + "network": "Dogecoin", + "currency_code": "DOGE", + "address": "D8GH73rNjudgi6bS2krrXWEsU9KShedLXp", + "preferred": true + }, + { + "network": "Ethereum", + "currency_code": "ETH", + "address": "0x7ab4091e00363654bf84B34151225742cd92FCE5", + "preferred": false + }, + { + "network": "Litecoin", + "currency_code": "LTC", + "address": "LbJi8EuoDcwaZvykcKmcrM74jpjde23qJ2", + "preferred": false + }, + { + "network": "Monero", + "currency_code": "XMR", + "address": "46YwWDbZD6jVptuk5mLHsuAmh1BnUMSjSNYacozQQEraWSQ93nb2yYVRHoMR6PmFYWEHsLHg9tr1cH5M8Rtn7YaaGQPCjSh", + "preferred": false + } + ] } ], "output": "static", - "purge": [ - "static" - ] + "purge": [] } \ No newline at end of file