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: {
name: "あどみん", // BOT管理者名
showMail: false, // メールアドレスを公開するか(false非公開/文字列:メールアドレス)
showMail: true, // メールアドレスを公開するか(emergency.mail.toが使用されます)
},
// uwuzuサーバー設定
uwuzu: {

View File

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

View File

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

View File

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

2
types/config.d.ts vendored
View File

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

13
types/types.d.ts vendored
View File

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