diff --git a/dist/buildinfo.json b/dist/buildinfo.json index b59c48ec..eddd2dc0 100644 --- a/dist/buildinfo.json +++ b/dist/buildinfo.json @@ -1 +1 @@ -{"sha":"e9c0b90","timestamp":1724490360} \ No newline at end of file +{"sha":"f09ef75","timestamp":1724514839} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index d2d2770f..b1b932a1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -875,8 +875,8 @@ class UserConfig { FUNCTION_REPLY_ASAP = false; } class Environment { - BUILD_TIMESTAMP = 1724490360 ; - BUILD_VERSION = "e9c0b90" ; + BUILD_TIMESTAMP = 1724514839 ; + BUILD_VERSION = "f09ef75" ; I18N = null; LANGUAGE = "zh-cn"; UPDATE_BRANCH = "test"; diff --git a/dist/timestamp b/dist/timestamp index 5ce4f011..e2efbd9c 100644 --- a/dist/timestamp +++ b/dist/timestamp @@ -1 +1 @@ -1724490360 \ No newline at end of file +1724514839 \ No newline at end of file diff --git a/plugins/bin.json b/plugins/bin.json new file mode 100644 index 00000000..b94fc8d1 --- /dev/null +++ b/plugins/bin.json @@ -0,0 +1,16 @@ +{ + "url": "https://lookup.binlist.net/{{DATA}}", + "method": "GET", + "response": { + "content": { + "input_type": "json", + "output_type": "markdown", + "output": "**卡BIN信息如下**\n卡品牌: {{scheme}}\n卡类型: {{type}}\n卡种类: {{brand}}\n发卡行: {{bank.name}}\n是否预付: {{#if prepaid}}是{{#else}}否{{/if}}\n发卡国家: {{country.emoji}}{{country.name}}\n币种: {{country.currency}}" + }, + "error": { + "input_type": "text", + "output_type": "text", + "output": "Error: {{.}}" + } + } +} diff --git a/plugins/news60s.json b/plugins/news60s.json new file mode 100644 index 00000000..c154ab50 --- /dev/null +++ b/plugins/news60s.json @@ -0,0 +1,16 @@ +{ + "url": "https://60s.viki.moe/?v2=1", + "method": "GET", + "response": { + "content": { + "input_type": "json", + "output_type": "markdown", + "output": "**每日60s看世界**\n{{#each news in data.news}}\n- {{.}}\n{{/each}}\n> {{data.tip}}\n\n[Data Source]({{data.url}})[API Source](https://github.com/vikiboss/60s)\n[cover]({{data.cover}})\nUpdateTime: {{data.updated}}" + }, + "error": { + "input_type": "json", + "output_type": "text", + "output": "Error: {{message}}" + } + } +} diff --git a/src/plugins/interpolate.js b/src/plugins/interpolate.js index 4af63798..75cda81b 100644 --- a/src/plugins/interpolate.js +++ b/src/plugins/interpolate.js @@ -1,3 +1,4 @@ +/* eslint-disable style/indent */ /* eslint-disable regexp/no-potentially-useless-backreference */ const INTERPOLATE_LOOP_REGEXP = /\{\{#each(?::(\w+))?\s+(\w+)\s+in\s+([\w.[\]]+)\}\}([\s\S]*?)\{\{\/each(?::\1)?\}\}/g; const INTERPOLATE_CONDITION_REGEXP = /\{\{#if(?::(\w+))?\s+([\w.[\]]+)\}\}([\s\S]*?)(?:\{\{#else(?::\1)?\}\}([\s\S]*?))?\{\{\/if(?::\1)?\}\}/g; diff --git a/src/plugins/interpolate_test.js b/src/plugins/interpolate_test.js index 4d6f9a14..e2bf4847 100644 --- a/src/plugins/interpolate_test.js +++ b/src/plugins/interpolate_test.js @@ -1,3 +1,4 @@ +/* eslint-disable style/indent */ import { interpolate } from './interpolate.js'; { diff --git a/src/plugins/template.js b/src/plugins/template.js index 0ceef77c..0063011d 100644 --- a/src/plugins/template.js +++ b/src/plugins/template.js @@ -1,3 +1,4 @@ +/* eslint-disable style/indent */ import { TemplateBodyTypeForm, TemplateBodyTypeJson, diff --git a/src/plugins/template_test.js b/src/plugins/template_test.js index 447f54c8..1619e4fa 100644 --- a/src/plugins/template_test.js +++ b/src/plugins/template_test.js @@ -1,3 +1,4 @@ +/* eslint-disable style/indent */ import fs from 'node:fs'; import { executeRequest } from './template.js';