Skip to content

Commit

Permalink
Minor Fixes
Browse files Browse the repository at this point in the history
1. Fixed a bug that doesn't allow bot to bypass warning when "bypass_warning" has been set to true
2. Fix api versioning in runMultiBot.sh
  • Loading branch information
MerlionRock committed Oct 24, 2017
1 parent a0f68bb commit e154d9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pokecli.py
Expand Up @@ -123,7 +123,7 @@ def initialize(config):
if killswitch_data['show_warning']:
yn=None
while yn==None:
if killswitch_data['pause_bot'] or not bypass_warning:
if killswitch_data['pause_bot'] and not bypass_warning:
yn = yes_no("\033[91mMessage: " + format(killswitch_data['message'])+ "\033[0m\nDo you wish to continue? Y/N")
else:
print "\033[91mMessage: " + format(killswitch_data['message']) + "\033[0m\n"
Expand Down
2 changes: 1 addition & 1 deletion runMultiBot.sh
Expand Up @@ -10,7 +10,7 @@ then
fi
git fetch -a
installed=(`pip list 2>/dev/null |sed -e 's/ //g' -e 's/(/:/' -e 's/)//' -e 's/[-_]//g' | awk '{print tolower($0)}'`)
required=(`cat requirements.txt | sed -e 's/.*pgoapi$/pgoapi==2.13.0/' -e 's/[-_]//g' -e 's/==\(.*\)/:\1/' | awk '{print tolower($0)}'`)
required=(`cat requirements.txt | sed -e 's/.*pgoapi$/pgoapi==2.14.0/' -e 's/[-_]//g' -e 's/==\(.*\)/:\1/' | awk '{print tolower($0)}'`)
for package in ${required[@]}
do
if [[ ! (${installed[*]} =~ $package) ]];
Expand Down

0 comments on commit e154d9b

Please sign in to comment.