Fix gen
This commit is contained in:
parent
57c1893a55
commit
baa6e54f9e
@ -63,16 +63,23 @@ def generator_jezyka_nautalnego(frame, tactic, state, text):
|
|||||||
if len(beastMatch) > 0:
|
if len(beastMatch) > 0:
|
||||||
print(random.choice(other) + ', '.join(beastMatch))
|
print(random.choice(other) + ', '.join(beastMatch))
|
||||||
|
|
||||||
elif tactic[1] == 'help':
|
elif tactic[0] == False: #ASK
|
||||||
|
print(f'Proszę podaj {tactic[1][0]}')
|
||||||
|
print()
|
||||||
|
elif tactic[0] == True:
|
||||||
|
_, act, req_args, opt_args = tactic
|
||||||
|
print('DEBUG: ', act, req_args, opt_args,sep = '\n')
|
||||||
|
if act == 'help':
|
||||||
print(random.choice(help))
|
print(random.choice(help))
|
||||||
print("Dostępne komendy: \n - " + '\n - '.join(commands))
|
print("Dostępne komendy: \n - " + '\n - '.join(commands))
|
||||||
|
|
||||||
elif tactic == 'bye':
|
elif act == 'bye':
|
||||||
print(random.choice(bye))
|
print(random.choice(bye))
|
||||||
print()
|
print()
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print(tactic)
|
print(tactic)
|
||||||
|
else:
|
||||||
|
print('ERROR')
|
||||||
print()
|
print()
|
||||||
|
Loading…
Reference in New Issue
Block a user