fixing the names of decide

This commit is contained in:
Tyler 2017-08-16 18:53:30 -06:00
parent 460a2e7a1b
commit c15bccc4e3
2 changed files with 1 additions and 8 deletions

View File

@ -2,17 +2,10 @@ import random
import help_methods import help_methods
def get_decide_choice(decide): def get_decide_choice(decide):
choices = decide.replace('!decide', '' ).lstrip().split(' or ') choices = decide.replace('!decide', '' ).lstrip().split(' or ')
if len(choices) > 1: if len(choices) > 1:
return random.choice(choices) return random.choice(choices)
elif '' in choices: elif '' in choices:
return help_methods.get_help_message('decide') return help_methods.get_help_message('decide')
else: else:
return random.choice(["yes", "no"]) return random.choice(["yes", "no"])

View File

@ -3,7 +3,7 @@ import sys
import requests import requests
import os import os
import decide_method import decide
import eight_ball import eight_ball
import define_word import define_word
import help_methods import help_methods