Start using fastapi.
This commit is contained in:
@@ -4,6 +4,7 @@ import sys
|
||||
|
||||
import hydra
|
||||
import nextcord
|
||||
from fastapi import FastAPI
|
||||
from hydra.core.config_store import ConfigStore
|
||||
from nextcord.ext import commands
|
||||
|
||||
@@ -27,6 +28,8 @@ handler.setFormatter(
|
||||
)
|
||||
logger.addHandler(handler)
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@hydra.main(config_path="conf", config_name="config")
|
||||
def main(cfg: DakinyConfig):
|
||||
|
||||
Reference in New Issue
Block a user