From e4392e5a0c137db3c534fa502e17981e13494fbf Mon Sep 17 00:00:00 2001 From: being <34680324+being24@users.noreply.github.com> Date: Sun, 8 Feb 2026 22:05:40 +0900 Subject: [PATCH] update .env --- cogs/utils/page_api.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cogs/utils/page_api.py b/cogs/utils/page_api.py index a49f499..aac5363 100644 --- a/cogs/utils/page_api.py +++ b/cogs/utils/page_api.py @@ -219,11 +219,6 @@ def __init__(self, site: str = "scp-jp"): PANOPTICON_API_URL: APIベースURL(例: https://manage.scp-jp.com) PANOPTICON_API_KEY: APIキー(manage API用) """ - dotenv_path = Path(__file__).parents[2] / ".env" - if not dotenv_path.exists(): - raise FileNotFoundError(".env file not found") - - load_dotenv(dotenv_path) # APIキー(PANOPTICON_API_KEY panopticon_api_key = getenv("PANOPTICON_API_KEY") @@ -349,6 +344,11 @@ async def request(): if __name__ == "__main__": + dotenv_path = Path(__file__).parents[2] / ".env" + if not dotenv_path.exists(): + raise FileNotFoundError(".env file not found") + + load_dotenv(dotenv_path) async def main(): try: