Fix getSpeaker
This commit is contained in:
parent
9edac72d38
commit
6f38cad661
9 changed files with 19 additions and 19 deletions
|
|
@ -383,7 +383,7 @@ def getSpeaker(speaker):
|
|||
|
||||
# Translate and Store Speaker
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
True,
|
||||
)
|
||||
|
|
@ -394,7 +394,7 @@ def getSpeaker(speaker):
|
|||
# Retry if name doesn't translate for some reason
|
||||
if re.search(r"([a-zA-Z??])", response[0]) == None:
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
False,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ def getSpeaker(speaker):
|
|||
|
||||
# Translate and Store Speaker
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
True,
|
||||
)
|
||||
|
|
@ -329,7 +329,7 @@ def getSpeaker(speaker):
|
|||
# Retry if name doesn't translate for some reason
|
||||
if re.search(r"([a-zA-Z??])", response[0]) == None:
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
False,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -323,7 +323,7 @@ def getSpeaker(speaker):
|
|||
|
||||
# Translate and Store Speaker
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
True,
|
||||
)
|
||||
|
|
@ -334,7 +334,7 @@ def getSpeaker(speaker):
|
|||
# Retry if name doesn't translate for some reason
|
||||
if re.search(r"([a-zA-Z??])", response[0]) == None:
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
False,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ def getSpeaker(speaker):
|
|||
|
||||
# Translate and Store Speaker
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
True,
|
||||
)
|
||||
|
|
@ -402,7 +402,7 @@ def getSpeaker(speaker):
|
|||
# Retry if name doesn't translate for some reason
|
||||
if re.search(r"([a-zA-Z??])", response[0]) == None:
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
False,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2432,7 +2432,7 @@ def getSpeaker(speaker):
|
|||
|
||||
# Translate and Store Speaker
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
True,
|
||||
)
|
||||
|
|
@ -2443,7 +2443,7 @@ def getSpeaker(speaker):
|
|||
# Retry if name doesn't translate for some reason
|
||||
if re.search(r"([a-zA-Z??])", response[0]) == None:
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
False,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ LEAVE = False
|
|||
# Dialogue / Scroll / Choices (Main Codes)
|
||||
CODE401 = True
|
||||
CODE405 = True
|
||||
CODE102 = False
|
||||
CODE102 = True
|
||||
|
||||
# Optional
|
||||
CODE101 = True # Turn this one when names exist in 101
|
||||
|
|
@ -2513,7 +2513,7 @@ def getSpeaker(speaker):
|
|||
|
||||
# Translate and Store Speaker
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
True,
|
||||
)
|
||||
|
|
@ -2524,7 +2524,7 @@ def getSpeaker(speaker):
|
|||
# Retry if name doesn't translate for some reason
|
||||
if re.search(r"([a-zA-Z??])", response[0]) == None:
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
False,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@ def getSpeaker(speaker):
|
|||
|
||||
# Translate and Store Speaker
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
True,
|
||||
)
|
||||
|
|
@ -307,7 +307,7 @@ def getSpeaker(speaker):
|
|||
# Retry if name doesn't translate for some reason
|
||||
if re.search(r"([a-zA-Z??])", response[0]) == None:
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
False,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1780,7 +1780,7 @@ def getSpeaker(speaker):
|
|||
|
||||
# Translate and Store Speaker
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
True,
|
||||
)
|
||||
|
|
@ -1791,7 +1791,7 @@ def getSpeaker(speaker):
|
|||
# Retry if name doesn't translate for some reason
|
||||
if re.search(r"([a-zA-Z??])", response[0]) == None:
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
False,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ def getSpeaker(speaker):
|
|||
|
||||
# Translate and Store Speaker
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
True,
|
||||
)
|
||||
|
|
@ -354,7 +354,7 @@ def getSpeaker(speaker):
|
|||
# Retry if name doesn't translate for some reason
|
||||
if re.search(r"([a-zA-Z??])", response[0]) == None:
|
||||
response = translateGPT(
|
||||
f'Speaker: {speaker}',
|
||||
f'{speaker}',
|
||||
"Reply with the " + LANGUAGE + " translation of the NPC name.",
|
||||
False,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue