-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using bots python script to generate default config (#638)
* Using bots python script to generate default config * Moving bots_default_config, and updating readme
- Loading branch information
Sheng Lundquist
authored
Jul 6, 2023
1 parent
516e140
commit 1616454
Showing
3 changed files
with
17 additions
and
18 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
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,9 @@ | ||
"""Example script for writing a custom bot config to json""" | ||
from elfpy.bots import BotConfig | ||
|
||
if __name__ == "__main__": | ||
# load the config file, which loads defaults | ||
config = BotConfig() | ||
|
||
# Write config to json | ||
config.save_as_json("bots_config.default.json") |