Last active
September 4, 2021 10:43
-
-
Save miladoll/0f38c019fd6cddfb0613af6a7fa0f328 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
BOOTH_ORDER : | |
{ | |
captures : { | |
subject : { | |
unpaid : { | |
rule : '^.*((お支払い未完了)).*$', | |
rule_opt : 'gsm', | |
default_value : '支払済み', | |
value : '支払未完了' | |
} | |
} | |
, | |
body : { | |
order_datetime : { | |
rule : '^.*\\| 注文日時.*?\\n([^\\n]+?分).*$', | |
rule_opt : 'gsm', | |
default_value : '', | |
value : '$1' | |
} | |
, | |
order_number : { | |
rule : '^.*注文番号.*?\\n([0-9]+)\\n.*$', | |
rule_opt : 'gsm', | |
default_value : '', | |
value : '$1' | |
} | |
, | |
order_url : { | |
rule : '^.*注文番号.*?\\n([0-9]+)\\n.*$', | |
rule_opt : 'gsm', | |
default_value : '', | |
value : 'https://manage.booth.pm/orders/$1' | |
} | |
, | |
order_detail : { | |
rule : '^.*注文内容.*?---\\n(.+)\\n小計.*$', | |
rule_opt : 'gsm', | |
default_value : '', | |
value : '$1' | |
} | |
} | |
}, | |
conds : [ | |
{ | |
key : 'from', | |
value : '[email protected]' | |
}, | |
{ | |
key : 'to', | |
value : '[email protected]' | |
}, | |
{ | |
key : 'subject', | |
value : '商品が注文されました' | |
}, | |
{ | |
key : 'body', | |
value : '注文されましたのでお知らせいたします' | |
}, | |
{ | |
key : 'body', | |
value : 'https://accounts.booth.pm/notification_settings/edit' | |
}, | |
], | |
actions : { | |
line_notify : { | |
template : `【受注通知】 | |
<BOOTH::注文あり %%order_url%% > | |
支払い状況: %%unpaid%% | |
日時: %%order_datetime%% | |
注文番号: %%order_number%% | |
注文詳細: | |
%%order_detail%% | |
` | |
} | |
, | |
trello_make_card : { | |
list_id : 'XXXXXXXXXXXXXXXXXXXXX', | |
template : { | |
title : `【注文】BOOTH: %%order_datetime%% #%%order_number%%`, | |
body : ` | |
経由ECサービス: BOOTH | |
支払い状況: %%unpaid%% | |
日時: %%order_datetime%% | |
注文番号: %%order_number%% | |
URL: %%order_url%% | |
注文詳細: | |
%%order_detail%% | |
` | |
, | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment