diff --git a/bot/config.py b/bot/config.py index 11541cd..4f1f907 100644 --- a/bot/config.py +++ b/bot/config.py @@ -57,10 +57,6 @@ INSTANCE_TYPE = instance_type # Web server port WEB_PORT = config['application'].getint('WebPort', 5000) -# Trusted instances -trusted_instances_str = config['application'].get('TrustedInstances', '') -TRUSTED_INSTANCES = [instance.strip() for instance in trusted_instances_str.split(',') if instance.strip()] - # Fedi handles in the traditional 'user@domain.tld' style, allows these users # to use extra admin exclusive commands with the bot ADMINS = json.loads(config['application']['DefaultAdmins']) diff --git a/example_config.ini b/example_config.ini index 516d552..ab866fe 100644 --- a/example_config.ini +++ b/example_config.ini @@ -9,9 +9,6 @@ DatabaseLocation = ./gacha_game.db InstanceType = misskey ; Web server port (default: 5000) WebPort = 5000 -; Comma-separated list of trusted fediverse instances (leave empty to allow only local users) -; Example: TrustedInstances = mastodon.social,misskey.io,pleroma.example.com -TrustedInstances = ; Whether to limit access to the bot via an instance whitelist ; The whitelist can be adjusted via the application UseWhitelist = False