You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
423 B
14 lines
423 B
import time
|
|
import misskey as misskey
|
|
from client import client_connection
|
|
|
|
from config import NOTIFICATION_POLL_INTERVAL
|
|
from notification import process_notifications
|
|
|
|
if __name__ == '__main__':
|
|
# Initialize the Misskey client
|
|
client = client_connection()
|
|
print('Listening for notifications...')
|
|
while True:
|
|
if not process_notifications(client):
|
|
time.sleep(NOTIFICATION_POLL_INTERVAL)
|
|
|