Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 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.2@uwuzu1.5.4",
|
||||
"description": "uwuzu Notice Bot",
|
||||
"main": "dist/main.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -179,7 +179,7 @@ async function event(earthquakeInfo: any): Promise<void> {
|
||||
const areaNames: Array<string> = Array.from(
|
||||
new Set(
|
||||
earthquakeInfo.areas.map((i: any) => {
|
||||
earthquakeInfo.areas[i].name.filter(Boolean);
|
||||
earthquakeInfo.areas[i].name;
|
||||
}),
|
||||
),
|
||||
);
|
||||
@@ -273,9 +273,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 +308,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