Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickwasused committed Sep 26, 2021
1 parent 4bb1575 commit ac04429
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions steam.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ def querygames():
pool.submit(getfreegames(_))
cleanlist(appids)

for _ in config.bots:
try:
_ = json.loads(_)
except json.decoder.JSONDecodeError as e:
print("Your config seems to be broken: {}".format(e))
continue
try:
bots = json.loads(config.bots)
except json.decoder.JSONDecodeError as e:
print("Your config seems to be broken: {}".format(e))
exit()

for _ in bots:
redeemhead(_)

logwrite_to_file()
Expand Down
5 changes: 2 additions & 3 deletions steamconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
# Nickwasused

class config:
# Config /Example for Bot (asf) bot_names = ["asf"]
# !Important please change the Settings here!
bots = ['{"name": "YOUR_BOT_NAME", "steamid": "YOUR_STEAM_ID_64"}']
bots = '[{"name" : "YOUR_BOT_NAME", "steamid" : "YOUR_STEAM_ID_64"}]'

# e.g multiple bots
# bots = ['{"name": "YOUR_BOT_NAME", "steamid": "YOUR_STEAM_ID_64"}, {"name": "YOUR_BOT_NAME_2", "steamid": "YOUR_STEAM_ID_64_2"}']
# bots = '[{"name" : "YOUR_BOT_NAME", "steamid" : "YOUR_STEAM_ID_64"}, {"name" : "YOUR_BOT_NAME", "steamid" : "YOUR_STEAM_ID_64"}]'


boturl = 'http://127.0.0.1:1242/Api/Command/'
Expand Down

0 comments on commit ac04429

Please sign in to comment.