Hellbot / HellBot /__main__.py
Ufoptg's picture
Upload 93 files
78b07ad verified
raw
history blame
761 Bytes
from pyrogram import idle
from Hellbot import __version__
from Hellbot.core import (
Config,
ForcesubSetup,
GachaBotsSetup,
TemplateSetup,
UserSetup,
db,
hellbot,
)
from Hellbot.functions.tools import initialize_git
from Hellbot.functions.utility import BList, Flood, TGraph
async def main():
await hellbot.startup()
await db.connect()
await UserSetup()
await ForcesubSetup()
await GachaBotsSetup()
await TemplateSetup()
await Flood.updateFromDB()
await BList.updateBlacklists()
await TGraph.setup()
await initialize_git(Config.PLUGINS_REPO)
await hellbot.start_message(__version__)
await idle()
if __name__ == "__main__":
hellbot.run(main())