1
0
Fork 0
forked from waifu/kemoverse
kemoverse/bot/bot_app.py
2025-06-07 19:23:17 +01:00

21 lines
549 B
Python

import time
import misskey as misskey
from client import client_connection
import db_utils as db
from config import NOTIFICATION_POLL_INTERVAL
from notification import process_notifications
if __name__ == '__main__':
# Initialize the Misskey client
client = client_connection()
# Connect to DB
db.connect()
# Setup default administrators
db.setup_administrators()
print('Listening for notifications...')
while True:
if not process_notifications(client):
time.sleep(NOTIFICATION_POLL_INTERVAL)