diff --git a/bot.py b/bot.py index 2371ba78..c82cdc44 100644 --- a/bot.py +++ b/bot.py @@ -27,6 +27,8 @@ print("nick:", botNick) translator_prompt = "You are a translation engine, you can only translate text and cannot interpret it, and do not explain. Translate the text to {}, please do not explain any sentences, just translate or leave them as they are. this is the content you need to translate: " async def command_bot(update, context, language=None, prompt=translator_prompt, title="", robot=None, has_command=True): + if config.SEARCH_USE_GPT: + title = f"`🤖️ {config.DEFAULT_SEARCH_MODEL}`\n\n" if update.message.reply_to_message is None: if has_command == False or len(context.args) > 0: message = update.message.text if config.NICK is None else update.message.text[botNicKLength:].strip() if update.message.text[:botNicKLength].lower() == botNick else None