coollsd commited on
Commit
420abad
·
verified ·
1 Parent(s): 6b076a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -7
app.py CHANGED
@@ -4,7 +4,11 @@ import asyncio
4
  from fastapi import FastAPI
5
  import uvicorn
6
 
7
- from commands import petsimgo, petroll, cash, dice, admincash
 
 
 
 
8
 
9
  app = FastAPI()
10
  intents = discord.Intents.default()
@@ -16,11 +20,11 @@ tree = app_commands.CommandTree(bot)
16
  async def read_root():
17
  return {"Hello": "World"}
18
 
19
- tree.add_command(petsimgo.petsimgo)
20
- tree.add_command(petroll.petroll)
21
- tree.add_command(cash.cash)
22
- tree.add_command(dice.dice)
23
- tree.add_command(admincash.admincash)
24
 
25
  @bot.event
26
  async def on_ready():
@@ -35,4 +39,4 @@ async def startup_event():
35
  asyncio.create_task(run_bot())
36
 
37
  if __name__ == "__main__":
38
- uvicorn.run("app:app", host="0.0.0.0", port=7860)
 
4
  from fastapi import FastAPI
5
  import uvicorn
6
 
7
+ from petsimgo import petsimgo
8
+ from petroll import petroll
9
+ from cash import cash
10
+ from dice import dice
11
+ from admincash import admincash
12
 
13
  app = FastAPI()
14
  intents = discord.Intents.default()
 
20
  async def read_root():
21
  return {"Hello": "World"}
22
 
23
+ tree.add_command(petsimgo)
24
+ tree.add_command(petroll)
25
+ tree.add_command(cash)
26
+ tree.add_command(dice)
27
+ tree.add_command(admincash)
28
 
29
  @bot.event
30
  async def on_ready():
 
39
  asyncio.create_task(run_bot())
40
 
41
  if __name__ == "__main__":
42
+ uvicorn.run("main:app", host="0.0.0.0", port=7860)