This repository has been archived on 2024-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
moderator-bot/utils/notify_start.py

19 lines
411 B
Python

import config
from database import Member, Restriction
from database import db
def database_is_empty():
if not db.get_columns("members"):
db.create_tables([Member, Restriction])
return True
elif not Member.select().count():
return True
return False
async def notify_started_bot(bot):
await bot.send_message(config.second_group_id, "Bot successfully launched!")