緊急地震速報にも反映→v3.5.3
This commit is contained in:
parent
7c7dfdcf3c
commit
88bd2e88a5
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "noticeuwuzu",
|
"name": "noticeuwuzu",
|
||||||
"version": "v3.5.2@uwuzu1.5.4",
|
"version": "v3.5.3@uwuzu1.5.4",
|
||||||
"description": "uwuzu Notice Bot",
|
"description": "uwuzu Notice Bot",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -178,12 +178,11 @@ async function event(earthquakeInfo: any): Promise<void> {
|
||||||
if (earthquakeInfo.areas !== null) {
|
if (earthquakeInfo.areas !== null) {
|
||||||
const areaNames: Array<string> = Array.from(
|
const areaNames: Array<string> = Array.from(
|
||||||
new Set(
|
new Set(
|
||||||
earthquakeInfo.areas.map((i: any) => {
|
earthquakeInfo.areas
|
||||||
earthquakeInfo.areas[i].name;
|
.map((point: any) => point.name)
|
||||||
}),
|
.filter(Boolean)
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
areas = `対象地域:${areaNames.join("・")}`;
|
areas = `対象地域:${areaNames.join("・")}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue