def func(xxx):
return xxx
print (len)
print (len("123"))
print (func)
print (func("123"))
def get_answer_from_message(message_text:str) -> str:
answers = get_answers_from_file_or_global_variable()
if message_text.startswith("привет"):
return answers["hello"]
return = answers.get(message_text, "нет ответа на ваш вопрос...")
return
@client.command
async def test(ctx, text):
answer = ctx.authon.mention+", "+get_answer_from_message(text)
await ctx.send(answer)