Skip to content

Commit

Permalink
Set log_url on cog load
Browse files Browse the repository at this point in the history
  • Loading branch information
raidensakura committed Apr 14, 2024
1 parent 58aacf3 commit fbbbd43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions logviewer/logviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async def cog_load(self) -> None:
if not self.config:
self.config = self.default_config
self.config["oauth2_client_id"] = self.bot.user.id
self.config["log_url"] = os.getenv("LOG_URL")
log_url = os.getenv("LOG_URL", self.config["log_url"])
if log_url:
self.config["oauth2_redirect_uri"] = (
Expand Down

0 comments on commit fbbbd43

Please sign in to comment.