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