This commit is contained in:
2025-08-06 21:27:29 +09:00
parent 1ff4b2c429
commit 644ba912b1
28 changed files with 498 additions and 124 deletions
+13 -4
View File
@@ -1,4 +1,4 @@
import { ueuse } from "types/types.js";
import { ueuse } from "types/types";
import { Reply } from "./main.js";
import config from "../../config.js";
import sendMail from "../../src/mailer.js";
@@ -15,7 +15,15 @@ export default async function Report(data: ueuse) {
return;
}
if (!config.emergency.mail.function) {
if (!config.emergency.isEnabled) {
console.log("報告(重要通知オフ)", await Reply(`
BOTの運営者によって重要通知が無効化されています。
そのため報告機能はご利用いただけません。
`, data.uniqid));
return;
}
if (!config.emergency.mail.isEnabled) {
console.log("報告(メールオフ)", await Reply(`
BOTの運営者によってメール送信機能が無効化されています。
そのため報告機能はご利用いただけません。
@@ -23,7 +31,7 @@ export default async function Report(data: ueuse) {
return;
}
if (!config.emergency.report) {
if (!config.report.isEnabled) {
console.log("報告(機能オフ)", await Reply(`
BOTの運営者によって報告機能が無効化されています。
そのため報告機能はご利用いただけません。
@@ -49,7 +57,8 @@ export default async function Report(data: ueuse) {
console.log("報告(完了)", await Reply(`
報告が完了しました。
運営者は報告者、ユーズのURL、内容を確認できます。
場合によっては運営者、BOTからブロックされる可能性があります。
--運営者からのメッセージ--
${config.report.message}
`, data.uniqid));
return;