from linebot.models import TextSendMessage
from models.message_request import MessageRequest
from skills import add_skill


@add_skill('{text}')
def get(message_request: MessageRequest):
    msg = TextSendMessage(text='Hello Text!')
    txt = '$ LINE emoji $'
    emoji = [
        {
            "index": 0,
            "productId": "<KEY>",
            "emojiId": "001"
        },
        {
            "index": 13,
            "productId": "<KEY>",
            "emoji": "002"
        }
    ]
    # print(txt.find('$', 2))
    return [
        TextSendMessage(text=txt, emojis=emoji)
    ]

from linebot.models import TextSendMessage
from models.message_request import MessageRequest
from skills import add_skill


@add_skill('{text}')
def get(message_request: MessageRequest):
    msg = TextSendMessage(text='Hello Text!')
    txt = '$ LINE emoji $'
    emoji = [
        {
            "index": 0,
            "productId": "<KEY>",
            "emojiId": "001"
        },
        {
            "index": 13,
            "productId": "<KEY>",
            "emoji": "002"
        }
    ]
    # print(txt.find('$', 2))
    return [
        TextSendMessage(text=txt, emojis=emoji)
    ]

# print(txt.find('$', 2))