From 956a6999cd5ea716488c76589f7fff81ca15b731 Mon Sep 17 00:00:00 2001 From: nameless Date: Mon, 5 Aug 2024 23:04:15 -0400 Subject: [PATCH] use os.environ() instead of os.getenv() to return application_id as int without converting --- watchdog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/watchdog.py b/watchdog.py index 033c606..4ba24af 100644 --- a/watchdog.py +++ b/watchdog.py @@ -5,12 +5,12 @@ import signal import sys from discord.ext import commands -from os import getenv +from os import environ from rich.console import Console from rich import inspect from datetime import datetime, timezone -application_id = getenv("APPLICATION_ID") +application_id = environ("APPLICATION_ID") # Console object for rich text content console = Console() @@ -39,7 +39,7 @@ class Watchdog(commands.AutoShardedBot): super().__init__( command_prefix = "%", intents = intents, - application_id = int(application_id) + application_id = application_id ) # Output to log when bot is ready