Delete unnecessary code, create main function
This commit is contained in:
parent
aeef9b7e98
commit
240a193e9a
10
main.py
10
main.py
|
@ -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)
|
|
||||||
|
|
Reference in a new issue