use os.environ() instead of os.getenv() to return application_id as int without converting
This commit is contained in:
parent
8ea79a5dbe
commit
956a6999cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user