From 73b9251e4bb2697ed4b3c134a723326ff9010610 Mon Sep 17 00:00:00 2001 From: karntrehan Date: Tue, 1 Oct 2024 17:19:08 +0530 Subject: [PATCH] PR fixes --- .env.sample | 7 +++---- helpers/supabaseClient.py | 3 --- main.py | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.env.sample b/.env.sample index 26f9f02..d14ed4f 100644 --- a/.env.sample +++ b/.env.sample @@ -1,4 +1,3 @@ -# Bot Token: TOKEN= SERVER_ID= INTRODUCTIONS_CHANNEL= @@ -10,6 +9,6 @@ WEBHOOK_URL= GITHUB_AUTHENTICATION_URL= -#SUPABASE_URL= -#SUPABASE_KEY= -#VERIFIED_ROLE_ID= \ No newline at end of file +SUPABASE_URL= +SUPABASE_KEY= +VERIFIED_ROLE_ID= \ No newline at end of file diff --git a/helpers/supabaseClient.py b/helpers/supabaseClient.py index 595cccc..3200f21 100644 --- a/helpers/supabaseClient.py +++ b/helpers/supabaseClient.py @@ -1,13 +1,10 @@ import os from discord import Member, User -import dotenv from supabase import Client, create_client from helpers.roleHelpers import lookForRoles -dotenv.load_dotenv(".env") - class SupabaseClient: def __init__(self, url=None, key=None) -> None: self.supabase_url = url if url else os.getenv("SUPABASE_URL") diff --git a/main.py b/main.py index 9787b47..d4b20f1 100644 --- a/main.py +++ b/main.py @@ -177,7 +177,7 @@ async def load(): async def main(): async with client: await load() - await client.start(os.getenv("TESTING_TOKEN")) + await client.start(os.getenv("TOKEN")) asyncio.run(main())