bena.c.b / main.py
alptangall's picture
Update main.py
4d8750d verified
raw
history blame contribute delete
567 Bytes
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"}