Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 88bd2e88a5 | |||
| 7c7dfdcf3c | |||
| dd70fe5494 | |||
| 73091bb92f |
@@ -1,5 +1,6 @@
|
||||
import type { configTypes } from "types/config";
|
||||
|
||||
// READMEの設定項目を参照
|
||||
const config: configTypes = {
|
||||
earthquake: {
|
||||
reconnectTimes: 5000,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "noticeuwuzu",
|
||||
"version": "v3.5.1@uwuzu1.5.4",
|
||||
"version": "v3.5.3@uwuzu1.5.4",
|
||||
"description": "uwuzu Notice Bot",
|
||||
"main": "dist/main.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -178,12 +178,11 @@ async function event(earthquakeInfo: any): Promise<void> {
|
||||
if (earthquakeInfo.areas !== null) {
|
||||
const areaNames: Array<string> = Array.from(
|
||||
new Set(
|
||||
earthquakeInfo.areas.map((i: any) => {
|
||||
earthquakeInfo.areas[i].name.filter(Boolean);
|
||||
}),
|
||||
earthquakeInfo.areas
|
||||
.map((point: any) => point.name)
|
||||
.filter(Boolean)
|
||||
),
|
||||
);
|
||||
|
||||
areas = `対象地域:${areaNames.join("・")}`;
|
||||
}
|
||||
|
||||
@@ -273,9 +272,12 @@ async function event(earthquakeInfo: any): Promise<void> {
|
||||
|
||||
if (earthquakeInfo.points !== null) {
|
||||
const areaNames: Array<string> = Array.from(
|
||||
new Set(earthquakeInfo.points.map((i: any) => i.addr).filter(Boolean)),
|
||||
new Set(
|
||||
earthquakeInfo.points
|
||||
.map((point: any) => point.addr)
|
||||
.filter(Boolean)
|
||||
),
|
||||
);
|
||||
|
||||
areas = `対象地域:${areaNames.join("・")}`;
|
||||
}
|
||||
|
||||
@@ -305,8 +307,8 @@ async function event(earthquakeInfo: any): Promise<void> {
|
||||
const areaNames: Array<string> = Array.from(
|
||||
new Set(
|
||||
earthquakeInfo.areas.map((i: any) => {
|
||||
areaMaps[i.id].filter(Boolean);
|
||||
}),
|
||||
return areaMaps[i.id];
|
||||
}).filter(Boolean)
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user