Delete unnecessary code, create main function

This commit is contained in:
riot 2022-09-14 19:41:19 +03:00
parent aeef9b7e98
commit 240a193e9a

10
main.py
View file

@ -1,10 +1,12 @@
#!/usr/bin/python #!/usr/bin/python
from aiogram import executor from aiogram import executor
from loader import dp import asyncio
import handlers
async def main():
"""TODO: Create and configure bot, connect to db"""
if __name__ == '__main__': if __name__ == '__main__':
handlers.register_handlers(dp) asyncio.run(main())
executor.start_polling(dp, skip_updates=True)