Add bot prefix modifier option in extensions

This commit is contained in:
oobabooga 2023-01-29 10:11:59 -03:00
parent c1c129196e
commit e5ff4ddfc8
3 changed files with 25 additions and 5 deletions

View file

@ -20,3 +20,12 @@ def output_modifier(string):
"""
return translator.translate(string, src="en", dest=params['language string']).text
def bot_prefix_modifier(string):
"""
This function is only applied in chat mode. It modifies
the prefix text for the Bot and can be used to bias its
behavior.
"""
return string