This commit is contained in:
Last2014 2025-08-05 19:58:09 +09:00
parent 6ec9831ed4
commit 0a3bb241a6
6 changed files with 19 additions and 20 deletions

View File

@ -46,7 +46,7 @@ const config: configTypes = {
// 管理者情報設定 // 管理者情報設定
admin: { admin: {
name: "あどみん", // BOT管理者名 name: "あどみん", // BOT管理者名
showMail: true, // メールアドレスを公開するか(emergency.mail.toが使用されます) showMail: false, // メールアドレスを公開するか(false非公開/文字列:メールアドレス)
}, },
// uwuzuサーバー設定 // uwuzuサーバー設定
uwuzu: { uwuzu: {

View File

@ -1,7 +1,7 @@
{ {
"name": "notice-uwuzu", "name": "notice-uwuzu",
"version": "v7.3@uwuzu1.5.4", "version": "v7.5@uwuzu1.5.4",
"tag": "v7.3", "tag": "v7.5",
"description": "Notice Bot for uwuzu", "description": "Notice Bot for uwuzu",
"main": "dist/main.js", "main": "dist/main.js",
"scripts": { "scripts": {

View File

@ -10,6 +10,7 @@ const helpsMin = {
"weather": "天気を返信します。", "weather": "天気を返信します。",
"report": "運営者に不具合などを報告します。", "report": "運営者に不具合などを報告します。",
"birthday": "誕生日を設定・削除できます。", "birthday": "誕生日を設定・削除できます。",
"legal terms": "利用規約を返信します。",
"legal privacy": "プライバシーポリシーを返信します。", "legal privacy": "プライバシーポリシーを返信します。",
} as { [key: string]: string }; } as { [key: string]: string };
@ -46,6 +47,9 @@ const helpsFull = {
yyyy/MM/ddの形式で誕生日を入力することで誕生日を設定できます yyyy/MM/ddの形式で誕生日を入力することで誕生日を設定できます
\`delete\`と入力することで誕生日のデータを削除できます。 \`delete\`と入力することで誕生日のデータを削除できます。
`, `,
"legal terms": `
`,
"legal privacy": ` "legal privacy": `
`, `,

View File

@ -15,18 +15,10 @@ export default async function Info(data: ueuse) {
let adminMail; let adminMail;
if ( if (config.admin.showMail === false) {
config.admin.showMail &&
config.emergency.mail.to !== undefined
) {
adminMail = config.emergency.mail.to;
} else if (
config.admin.showMail &&
config.emergency.mail.to === undefined
) {
adminMail = "未設定";
} else {
adminMail = "非公開"; adminMail = "非公開";
} else {
adminMail = config.admin.showMail;
} }
let isReport; let isReport;

2
types/config.d.ts vendored
View File

@ -41,7 +41,7 @@ interface legalTypes {
interface adminTypes { interface adminTypes {
name: string; name: string;
showMail: boolean; showMail: string | false;
} }
interface uwuzuTypes { interface uwuzuTypes {

13
types/types.d.ts vendored
View File

@ -25,18 +25,21 @@ export interface meApi {
export interface ueuse { export interface ueuse {
uniqid: string; uniqid: string;
relpyid: string;
reuseid: string;
text: string; text: string;
account: { account: {
username: string; username: string;
userid: string; userid: string;
user_icon: string; user_icon: string;
user_header: string; user_header: string;
is_bot: boolean;
}; };
photo1: Base64URLString; photo1: string;
photo2: Base64URLString; photo2: string;
photo3: Base64URLString; photo3: string;
photo4: Base64URLString; photo4: string;
video1: Base64URLString; video1: string;
favorite: Array<string>; favorite: Array<string>;
favorite_cnt: string; favorite_cnt: string;
datetime: string; datetime: string;