Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
|
|
| 1 |
import discord
|
| 2 |
from discord import app_commands
|
| 3 |
-
import asyncio
|
| 4 |
from fastapi import FastAPI
|
| 5 |
import uvicorn
|
| 6 |
|
|
|
|
| 7 |
from petsimgo import petsimgo
|
| 8 |
from petroll import petroll
|
| 9 |
from cash import cash
|
|
@@ -49,4 +50,4 @@ async def startup_event():
|
|
| 49 |
asyncio.create_task(run_bot())
|
| 50 |
|
| 51 |
if __name__ == "__main__":
|
| 52 |
-
uvicorn.run("
|
|
|
|
| 1 |
+
# app.py or main.py
|
| 2 |
import discord
|
| 3 |
from discord import app_commands
|
|
|
|
| 4 |
from fastapi import FastAPI
|
| 5 |
import uvicorn
|
| 6 |
|
| 7 |
+
from shared import user_cash, user_bets, fetch_nhl_scores
|
| 8 |
from petsimgo import petsimgo
|
| 9 |
from petroll import petroll
|
| 10 |
from cash import cash
|
|
|
|
| 50 |
asyncio.create_task(run_bot())
|
| 51 |
|
| 52 |
if __name__ == "__main__":
|
| 53 |
+
uvicorn.run("app:app", host="0.0.0.0", port=7860)
|