Skip to content

Commit

Permalink
Fixed config file creations
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberjunky committed Oct 24, 2021
1 parent ecd2eb9 commit 056fcec
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
24 changes: 12 additions & 12 deletions altrank.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,35 +134,35 @@ def load_config():

if program == "watchlist":
cfg["settings"] = {
"timeinterval": 3600,
"debug": False,
"botids": [12345, 67890],
"numberofpairs": 10,
"usdt_botid": 12345,
"btc_botid": 67890,
"accountmode": "paper",
"3c-apikey": "Your 3Commas API Key",
"3c-apisecret": "Your 3Commas API Secret",
"lc-apikey": "Your LunarCrush API Key",
"tgram-phone-number": "Your Telegram Phone number",
"tgram-channel": "Telegram Channel to watch",
"tgram-api-id": "Your Telegram API ID",
"tgram-api-hash": "Your Telegram API Hash",
"notifications": False,
"notify-urls": ["notify-url1", "notify-url2"],
}
else:
cfg["settings"] = {
"timeinterval": 3600,
"debug": False,
"usdt_botid": 12345,
"btc_botid": 67890,
"botids": [12345, 67890],
"numberofpairs": 10,
"accountmode": "paper",
"3c-apikey": "Your 3Commas API Key",
"3c-apisecret": "Your 3Commas API Secret",
"tgram-phone-number": "Your Telegram Phone number",
"tgram-channel": "Telegram Channel to watch",
"tgram-api-id": "Your Telegram API ID",
"tgram-api-hash": "Your Telegram API Hash",
"lc-apikey": "Your LunarCrush API Key",
"notifications": False,
"notify-urls": ["notify-url1", "notify-url2"],
}

with open("{program}.ini", "w") as cfgfile:
cfgfile.write(f"{program}.ini")
with open(f"{program}.ini", "w") as cfgfile:
cfg.write(cfgfile)

return None

Expand Down
24 changes: 12 additions & 12 deletions galaxyscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,35 +134,35 @@ def load_config():

if program == "watchlist":
cfg["settings"] = {
"timeinterval": 3600,
"debug": False,
"botids": [12345, 67890],
"numberofpairs": 10,
"usdt_botid": 12345,
"btc_botid": 67890,
"accountmode": "paper",
"3c-apikey": "Your 3Commas API Key",
"3c-apisecret": "Your 3Commas API Secret",
"lc-apikey": "Your LunarCrush API Key",
"tgram-phone-number": "Your Telegram Phone number",
"tgram-channel": "Telegram Channel to watch",
"tgram-api-id": "Your Telegram API ID",
"tgram-api-hash": "Your Telegram API Hash",
"notifications": False,
"notify-urls": ["notify-url1", "notify-url2"],
}
else:
cfg["settings"] = {
"timeinterval": 3600,
"debug": False,
"usdt_botid": 12345,
"btc_botid": 67890,
"botids": [12345, 67890],
"numberofpairs": 10,
"accountmode": "paper",
"3c-apikey": "Your 3Commas API Key",
"3c-apisecret": "Your 3Commas API Secret",
"tgram-phone-number": "Your Telegram Phone number",
"tgram-channel": "Telegram Channel to watch",
"tgram-api-id": "Your Telegram API ID",
"tgram-api-hash": "Your Telegram API Hash",
"lc-apikey": "Your LunarCrush API Key",
"notifications": False,
"notify-urls": ["notify-url1", "notify-url2"],
}

with open("{program}.ini", "w") as cfgfile:
cfgfile.write(f"{program}.ini")
with open(f"{program}.ini", "w") as cfgfile:
cfg.write(cfgfile)

return None

Expand Down
24 changes: 12 additions & 12 deletions watchlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,35 +134,35 @@ def load_config():

if program == "watchlist":
cfg["settings"] = {
"timeinterval": 3600,
"debug": False,
"botids": [12345, 67890],
"numberofpairs": 10,
"usdt_botid": 12345,
"btc_botid": 67890,
"accountmode": "paper",
"3c-apikey": "Your 3Commas API Key",
"3c-apisecret": "Your 3Commas API Secret",
"lc-apikey": "Your LunarCrush API Key",
"tgram-phone-number": "Your Telegram Phone number",
"tgram-channel": "Telegram Channel to watch",
"tgram-api-id": "Your Telegram API ID",
"tgram-api-hash": "Your Telegram API Hash",
"notifications": False,
"notify-urls": ["notify-url1", "notify-url2"],
}
else:
cfg["settings"] = {
"timeinterval": 3600,
"debug": False,
"usdt_botid": 12345,
"btc_botid": 67890,
"botids": [12345, 67890],
"numberofpairs": 10,
"accountmode": "paper",
"3c-apikey": "Your 3Commas API Key",
"3c-apisecret": "Your 3Commas API Secret",
"tgram-phone-number": "Your Telegram Phone number",
"tgram-channel": "Telegram Channel to watch",
"tgram-api-id": "Your Telegram API ID",
"tgram-api-hash": "Your Telegram API Hash",
"lc-apikey": "Your LunarCrush API Key",
"notifications": False,
"notify-urls": ["notify-url1", "notify-url2"],
}

with open("{program}.ini", "w") as cfgfile:
cfgfile.write(f"{program}.ini")
with open(f"{program}.ini", "w") as cfgfile:
cfg.write(cfgfile)

return None

Expand Down

0 comments on commit 056fcec

Please sign in to comment.