fixing the names of decide
This commit is contained in:
parent
460a2e7a1b
commit
c15bccc4e3
@ -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"])
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user