Skip to content

Commit

Permalink
make sure examples can generate without a token already configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsTheFae committed Jan 8, 2025
1 parent 7789960 commit cb5f531
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,10 @@ def main() -> None:
# Handle startup checks, if they haven't been skipped.
sanity_checks(cli_args)

# Make sure Config doesn't wig out when no config exists but we still want to generate examples.
if cli_args.make_examples and "MUSICBOT_TOKEN" not in os.environ:
os.environ["MUSICBOT_TOKEN"] = "Your Token Here"

exit_signal: Union[RestartSignal, TerminateSignal, None] = None
event_loop: Optional[asyncio.AbstractEventLoop] = None
tried_requirementstxt: bool = False
Expand Down

0 comments on commit cb5f531

Please sign in to comment.