Hana Celeste commited on
Update main.py
Browse files
main.py
CHANGED
|
@@ -15,10 +15,12 @@ async def lifespan(app: FastAPI):
|
|
| 15 |
await enka.start()
|
| 16 |
await akasa.start()
|
| 17 |
await fetcher.start()
|
|
|
|
| 18 |
yield
|
| 19 |
await fetcher.stop()
|
| 20 |
await akasa.stop()
|
| 21 |
await enka.stop()
|
|
|
|
| 22 |
|
| 23 |
app = FastAPI(lifespan=lifespan)
|
| 24 |
|
|
|
|
| 15 |
await enka.start()
|
| 16 |
await akasa.start()
|
| 17 |
await fetcher.start()
|
| 18 |
+
await discord_app.start()
|
| 19 |
yield
|
| 20 |
await fetcher.stop()
|
| 21 |
await akasa.stop()
|
| 22 |
await enka.stop()
|
| 23 |
+
await discord_app.stop()
|
| 24 |
|
| 25 |
app = FastAPI(lifespan=lifespan)
|
| 26 |
|