forked from sh-edraft.de/sh_discord_bot
19 lines
426 B
Python
19 lines
426 B
Python
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__':
|
|
ml = asyncio.get_event_loop()
|
|
ml.run_until_complete(main())
|