Compare commits

..

No commits in common. "1ff4b2c429fce2fea89ab3a9d49bd098d1cbf8ef" and "f14999be13c38654453d00dbeb90e92f0a09d215" have entirely different histories.

6 changed files with 20 additions and 19 deletions

View File

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

View File

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

View File

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

View File

@ -15,10 +15,18 @@ export default async function Info(data: ueuse) {
let adminMail; let adminMail;
if (config.admin.showMail === false) { if (
adminMail = "非公開"; 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 { } else {
adminMail = config.admin.showMail; adminMail = "非公開";
} }
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: string | false; showMail: boolean;
} }
interface uwuzuTypes { interface uwuzuTypes {

13
types/types.d.ts vendored
View File

@ -25,21 +25,18 @@ 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: string; photo1: Base64URLString;
photo2: string; photo2: Base64URLString;
photo3: string; photo3: Base64URLString;
photo4: string; photo4: Base64URLString;
video1: string; video1: Base64URLString;
favorite: Array<string>; favorite: Array<string>;
favorite_cnt: string; favorite_cnt: string;
datetime: string; datetime: string;