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
|
||||
from aiogram import executor
|
||||
|
||||
from loader import dp
|
||||
import handlers
|
||||
import asyncio
|
||||
|
||||
|
||||
async def main():
|
||||
"""TODO: Create and configure bot, connect to db"""
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
handlers.register_handlers(dp)
|
||||
executor.start_polling(dp, skip_updates=True)
|
||||
asyncio.run(main())
|
||||
|
|
Reference in a new issue