Mbonea commited on
Commit
b6e6fa1
1 Parent(s): 1935d42

added await

Browse files
Files changed (1) hide show
  1. App/app.py +2 -2
App/app.py CHANGED
@@ -7,12 +7,12 @@ app = FastAPI()
7
 
8
  @app.on_event("startup")
9
  async def startup_event():
10
- bot.start()
11
 
12
 
13
  @app.on_event("shutdown")
14
  async def shutdown_event():
15
- bot.stop()
16
 
17
 
18
  @app.get("/")
 
7
 
8
  @app.on_event("startup")
9
  async def startup_event():
10
+ await bot.start()
11
 
12
 
13
  @app.on_event("shutdown")
14
  async def shutdown_event():
15
+ await bot.stop()
16
 
17
 
18
  @app.get("/")