2022-07-14 16:32:46 +02:00
|
|
|
import asyncio
|
|
|
|
|
|
|
|
from cpl_core.application import ApplicationBuilder
|
|
|
|
|
|
|
|
from bot.application import Application
|
|
|
|
from bot.startup import Startup
|
|
|
|
|
|
|
|
|
|
|
|
async def main():
|
|
|
|
app_builder = ApplicationBuilder(Application)
|
|
|
|
app_builder.use_startup(Startup)
|
|
|
|
app: Application = await app_builder.build_async()
|
|
|
|
await app.run_async()
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2022-07-16 19:05:39 +02:00
|
|
|
asyncio.run(main())
|