v8.0
This commit is contained in:
@@ -276,7 +276,7 @@ async function event(earthquakeInfo: any): Promise<void> {
|
||||
if (
|
||||
earthquakeInfo.earthquake.maxScale !== undefined &&
|
||||
earthquakeInfo.earthquake.maxScale >= 60 &&
|
||||
config.emergency.function
|
||||
config.emergency.isEnabled
|
||||
) {
|
||||
console.log("----------------");
|
||||
|
||||
@@ -284,7 +284,7 @@ async function event(earthquakeInfo: any): Promise<void> {
|
||||
console.log("サーバーがダウンする可能性があります");
|
||||
|
||||
// メール送信
|
||||
if (config.emergency.function) {
|
||||
if (config.emergency.isEnabled) {
|
||||
sendMail({
|
||||
to: config.emergency.mail.to,
|
||||
subject: "【警告】震度6強以上の地震を受信しました",
|
||||
|
||||
Reference in New Issue
Block a user