indicate on startup if whitelisting is enabled.
This commit is contained in:
parent
f4f847e577
commit
7fd4d5db25
1 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,7 @@ import misskey as misskey
|
|||
from client import client_connection
|
||||
import db_utils as db
|
||||
|
||||
from config import NOTIFICATION_POLL_INTERVAL
|
||||
from config import NOTIFICATION_POLL_INTERVAL, USE_WHITELIST
|
||||
from notification import process_notifications
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -15,6 +15,10 @@ if __name__ == '__main__':
|
|||
# Setup default administrators
|
||||
db.setup_administrators()
|
||||
|
||||
# Show whitelist status
|
||||
whitelist_status = "enabled" if USE_WHITELIST else "disabled"
|
||||
print(f'Instance whitelisting: {whitelist_status}')
|
||||
|
||||
print('Listening for notifications...')
|
||||
while True:
|
||||
if not process_notifications(client):
|
||||
|
|
Loading…
Add table
Reference in a new issue