use os.environ() instead of os.getenv() to return application_id as int without converting

This commit is contained in:
nameless 2024-08-05 23:04:15 -04:00
parent 8ea79a5dbe
commit 956a6999cd

View File

@ -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