Spaces:
Running
Running
File size: 567 Bytes
c387ccb 8742308 c387ccb 4ff8b05 bb9e089 4ff8b05 bb9e089 4d8750d 1f8f305 bb9e089 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import asyncio
import os,sys
import subprocess
import re,json
import discord
from discord.ext import commands, tasks
from discord import app_commands
from discord.utils import get
import random
import datetime
import server
from guild import *
from acb import *
import aiohttp
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World!"}
@app.get("/start")
def read_root():
result=subprocess.Popen(["python", 'main1.py'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print(result)
return {"Bot starting"}
|