Spaces:
Sleeping
Sleeping
RainRat commited on
Commit ·
5eb8920
1
Parent(s): 49a5668
Fix typos (#124)
Browse files- config.yml.default +1 -1
- lishogi-bot.py +2 -2
config.yml.default
CHANGED
|
@@ -45,7 +45,7 @@ challenge: # Incoming challenges.
|
|
| 45 |
sort_by: "best" # Possible values here are "best" and "first".
|
| 46 |
accept_bot: true # Accepts challenges coming from other bots. Setting this to "true" will allow games from both human and bot, but setting it to false will allow games only from human.
|
| 47 |
only_bot: false # Enable this to accept challenges only from bots. This will disable accepting challenges from human.
|
| 48 |
-
max_increment: 180 # Maximum amount of increment to
|
| 49 |
min_increment: 0 # Minimum amount of increment to accept a challenge.
|
| 50 |
max_byoyomi: 180 # Maximum amount of increment to accept a challenge. The max is 180. Set to 0 for no byoyomi.
|
| 51 |
min_byoyomi: 0 # Minimum amount of increment to accept a challenge.
|
|
|
|
| 45 |
sort_by: "best" # Possible values here are "best" and "first".
|
| 46 |
accept_bot: true # Accepts challenges coming from other bots. Setting this to "true" will allow games from both human and bot, but setting it to false will allow games only from human.
|
| 47 |
only_bot: false # Enable this to accept challenges only from bots. This will disable accepting challenges from human.
|
| 48 |
+
max_increment: 180 # Maximum amount of increment to accept a challenge. The max is 180. Set to 0 for no increment.
|
| 49 |
min_increment: 0 # Minimum amount of increment to accept a challenge.
|
| 50 |
max_byoyomi: 180 # Maximum amount of increment to accept a challenge. The max is 180. Set to 0 for no byoyomi.
|
| 51 |
min_byoyomi: 0 # Minimum amount of increment to accept a challenge.
|
lishogi-bot.py
CHANGED
|
@@ -31,7 +31,7 @@ terminated = False
|
|
| 31 |
|
| 32 |
def signal_handler(signal, frame):
|
| 33 |
global terminated
|
| 34 |
-
logger.debug("
|
| 35 |
terminated = True
|
| 36 |
|
| 37 |
|
|
@@ -46,7 +46,7 @@ def upgrade_account(li):
|
|
| 46 |
if li.upgrade_to_bot_account() is None:
|
| 47 |
return False
|
| 48 |
|
| 49 |
-
logger.info("
|
| 50 |
return True
|
| 51 |
|
| 52 |
|
|
|
|
| 31 |
|
| 32 |
def signal_handler(signal, frame):
|
| 33 |
global terminated
|
| 34 |
+
logger.debug("Received SIGINT. Terminating client.")
|
| 35 |
terminated = True
|
| 36 |
|
| 37 |
|
|
|
|
| 46 |
if li.upgrade_to_bot_account() is None:
|
| 47 |
return False
|
| 48 |
|
| 49 |
+
logger.info("Successfully upgraded to Bot Account!")
|
| 50 |
return True
|
| 51 |
|
| 52 |
|