-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'V3/develop' into hyperlink-and-header
- Loading branch information
Showing
200 changed files
with
4,423 additions
and
3,580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import sys | ||
from pathlib import Path | ||
|
||
import yaml | ||
|
||
ROOT_FOLDER = Path(__file__).parents[3].absolute() | ||
AUDIO_FOLDER = ROOT_FOLDER / "redbot/cogs/audio" | ||
|
||
# We want to import `redbot.cogs.audio.managed_node` package as if it were top-level package | ||
# so we have to the `redbot/cogs/audio` directory to Python's path. | ||
sys.path.insert(0, str(AUDIO_FOLDER)) | ||
|
||
|
||
def main() -> int: | ||
try: | ||
output_file = sys.argv[1] | ||
except IndexError: | ||
print("Usage:", sys.argv[0], "<output_file>", file=sys.stderr) | ||
return 2 | ||
|
||
import managed_node | ||
|
||
server_config = managed_node.get_default_server_config() | ||
with open(output_file, "w", encoding="utf-8") as fp: | ||
yaml.safe_dump(server_config, fp) | ||
|
||
return 0 | ||
|
||
|
||
if __name__ == "__main__": | ||
raise SystemExit(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.