Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
Minor improvements

See merge request namibsun/python/kudubot!15
  • Loading branch information
namboy94 committed Oct 3, 2019
2 parents 42f9fad + 2b63dc2 commit 71bc3ff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
V 0.31.1:
- Fixed minor issue when running uninitialized bot
- /start now shows help command
V 0.31.0:
- Added ways to make commands work only when authorized using decorators
V 0.30.0:
Expand Down
2 changes: 1 addition & 1 deletion kudubot/Bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def _handle_help_command(self, message: TextMessage) -> bool:
:param message: The message to check for a /help command
:return: Whether or not handling the message should continue
"""
if message.body.lower().strip() == "/help":
if message.body.lower().strip() in ["/help", "/start"]:

help_message = "Help message for:\n{} V{}\n(kudubot V{})\n\n"\
.format(self.name(), self.version(), kudubot_version)
Expand Down
2 changes: 1 addition & 1 deletion kudubot/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def cli_bot_start(
print("Successfully generated configuration in " + config_path)

elif not os.path.isdir(config_path):
print("Missing Configuration directory {}" + config_path)
print("Missing Configuration directory " + config_path)

else:

Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.31.0
0.31.1

0 comments on commit 71bc3ff

Please sign in to comment.