diff --git a/src/weatherId.ts b/src/constants/weatherId.ts similarity index 93% rename from src/weatherId.ts rename to src/constants/weatherId.ts index 4b83fb5..9a9a174 100644 --- a/src/weatherId.ts +++ b/src/constants/weatherId.ts @@ -1,4 +1,4 @@ -export const cityList: Array = [ +export const cityList = [ "016010", "020010", "030010", diff --git a/src/mailer.ts b/src/lib/mailer.ts similarity index 94% rename from src/mailer.ts rename to src/lib/mailer.ts index 8fc4f6a..f68270a 100644 --- a/src/mailer.ts +++ b/src/lib/mailer.ts @@ -1,4 +1,4 @@ -import config from "../config.js"; +import config from "../../config.js"; import * as nodemailer from "nodemailer"; import type SMTPTransport from "nodemailer/lib/smtp-transport"; diff --git a/scripts/asciiart.ts b/src/scripts/asciiart.ts similarity index 100% rename from scripts/asciiart.ts rename to src/scripts/asciiart.ts diff --git a/scripts/clean/logsDel.ts b/src/scripts/clean/logsDel.ts similarity index 100% rename from scripts/clean/logsDel.ts rename to src/scripts/clean/logsDel.ts diff --git a/scripts/clean/main.ts b/src/scripts/clean/main.ts similarity index 100% rename from scripts/clean/main.ts rename to src/scripts/clean/main.ts diff --git a/scripts/clean/npmInstall.ts b/src/scripts/clean/npmInstall.ts similarity index 100% rename from scripts/clean/npmInstall.ts rename to src/scripts/clean/npmInstall.ts diff --git a/scripts/clean/packageLockDel.ts b/src/scripts/clean/packageLockDel.ts similarity index 100% rename from scripts/clean/packageLockDel.ts rename to src/scripts/clean/packageLockDel.ts diff --git a/scripts/commands/delete.ts b/src/scripts/commands/delete.ts similarity index 93% rename from scripts/commands/delete.ts rename to src/scripts/commands/delete.ts index 3711d82..2da69a5 100644 --- a/scripts/commands/delete.ts +++ b/src/scripts/commands/delete.ts @@ -1,4 +1,4 @@ -import { meApi, ueuse } from "../../types/types"; +import { meApi, ueuse } from "../../src/types/types"; import config from "../../config.js"; import { Reply } from "./main.js"; diff --git a/scripts/commands/follow.ts b/src/scripts/commands/follow.ts similarity index 90% rename from scripts/commands/follow.ts rename to src/scripts/commands/follow.ts index c9ae125..6b01ebf 100644 --- a/scripts/commands/follow.ts +++ b/src/scripts/commands/follow.ts @@ -1,4 +1,4 @@ -import { ueuse } from "types/types"; +import { ueuse } from "src/types/types.js"; import config from "../../config.js"; import { Reply } from "./main.js"; diff --git a/scripts/commands/help.ts b/src/scripts/commands/help.ts similarity index 96% rename from scripts/commands/help.ts rename to src/scripts/commands/help.ts index 4718bcc..fd437a6 100644 --- a/scripts/commands/help.ts +++ b/src/scripts/commands/help.ts @@ -1,4 +1,4 @@ -import { ueuse } from "types/types"; +import { ueuse } from "src/types/types.js"; import { readFileSync } from "fs"; import { Reply } from "./main.js"; diff --git a/scripts/commands/info.ts b/src/scripts/commands/info.ts similarity index 94% rename from scripts/commands/info.ts rename to src/scripts/commands/info.ts index 6b9851a..2049370 100644 --- a/scripts/commands/info.ts +++ b/src/scripts/commands/info.ts @@ -1,4 +1,4 @@ -import { ueuse } from "types/types"; +import { ueuse } from "src/types/types.js"; import { readFileSync } from "fs"; import { Reply } from "./main.js"; import config from "../../config.js"; diff --git a/scripts/commands/legal/privacy.ts b/src/scripts/commands/legal/privacy.ts similarity index 77% rename from scripts/commands/legal/privacy.ts rename to src/scripts/commands/legal/privacy.ts index 123d337..3f45ab0 100644 --- a/scripts/commands/legal/privacy.ts +++ b/src/scripts/commands/legal/privacy.ts @@ -1,4 +1,4 @@ -import { ueuse } from "types/types"; +import { ueuse } from "src/types/types.js"; import { Reply } from "../main.js"; import config from "../../../config.js"; diff --git a/scripts/commands/legal/terms.ts b/src/scripts/commands/legal/terms.ts similarity index 76% rename from scripts/commands/legal/terms.ts rename to src/scripts/commands/legal/terms.ts index 71ec9c7..5532a7d 100644 --- a/scripts/commands/legal/terms.ts +++ b/src/scripts/commands/legal/terms.ts @@ -1,4 +1,4 @@ -import { ueuse } from "types/types"; +import { ueuse } from "src/types/types.js"; import { Reply } from "../main.js"; import config from "../../../config.js"; diff --git a/scripts/commands/main.ts b/src/scripts/commands/main.ts similarity index 94% rename from scripts/commands/main.ts rename to src/scripts/commands/main.ts index ea072ee..f2ec6d5 100644 --- a/scripts/commands/main.ts +++ b/src/scripts/commands/main.ts @@ -1,6 +1,6 @@ import * as fs from "fs"; import config from "../../config.js"; -import type { ueuse } from "types/types"; +import type { ueuse } from "src/types/types.js"; const initialFile: Array = []; diff --git a/scripts/commands/miq/allow.ts b/src/scripts/commands/miq/allow.ts similarity index 95% rename from scripts/commands/miq/allow.ts rename to src/scripts/commands/miq/allow.ts index ad77537..b2d23ed 100644 --- a/scripts/commands/miq/allow.ts +++ b/src/scripts/commands/miq/allow.ts @@ -1,4 +1,4 @@ -import { meApi, ueuse } from "../../../types/types"; +import { meApi, ueuse } from "../../../src/types/types"; import { readFileSync } from "fs"; import config from "../../../config.js"; import { Reply } from "../main.js"; diff --git a/scripts/commands/miq/main.ts b/src/scripts/commands/miq/main.ts similarity index 95% rename from scripts/commands/miq/main.ts rename to src/scripts/commands/miq/main.ts index 9c0fb4a..350c873 100644 --- a/scripts/commands/miq/main.ts +++ b/src/scripts/commands/miq/main.ts @@ -1,4 +1,4 @@ -import { ueuse } from "../../../types/types"; +import { ueuse } from "../../../src/types/types"; import MiQ from "../../../miq/main.js"; import config from "../../../config.js"; import { Reply } from "../main.js"; diff --git a/scripts/commands/miq/permission.ts b/src/scripts/commands/miq/permission.ts similarity index 94% rename from scripts/commands/miq/permission.ts rename to src/scripts/commands/miq/permission.ts index e8593b5..d82587a 100644 --- a/scripts/commands/miq/permission.ts +++ b/src/scripts/commands/miq/permission.ts @@ -1,4 +1,4 @@ -import { ueuse } from "../../../types/types"; +import { ueuse } from "../../../src/types/types"; import { Reply } from "../main.js"; import config from "../../../config.js"; import { readFileSync, writeFileSync, existsSync } from "fs"; diff --git a/scripts/commands/report.ts b/src/scripts/commands/report.ts similarity index 93% rename from scripts/commands/report.ts rename to src/scripts/commands/report.ts index ed5ab92..e2e196c 100644 --- a/scripts/commands/report.ts +++ b/src/scripts/commands/report.ts @@ -1,7 +1,7 @@ -import { ueuse } from "types/types"; +import { ueuse } from "src/types/types.js"; import { Reply } from "./main.js"; import config from "../../config.js"; -import sendMail from "../../src/mailer.js"; +import sendMail from "../../src/lib/mailer.js"; export default async function Report(data: ueuse) { if ( diff --git a/scripts/commands/unfollow.ts b/src/scripts/commands/unfollow.ts similarity index 90% rename from scripts/commands/unfollow.ts rename to src/scripts/commands/unfollow.ts index 6d51600..21fa513 100644 --- a/scripts/commands/unfollow.ts +++ b/src/scripts/commands/unfollow.ts @@ -1,4 +1,4 @@ -import { ueuse } from "types/types"; +import { ueuse } from "src/types/types.js"; import config from "../../config.js"; import { Reply } from "./main.js"; diff --git a/scripts/commands/weather.ts b/src/scripts/commands/weather.ts similarity index 72% rename from scripts/commands/weather.ts rename to src/scripts/commands/weather.ts index 60bc831..ff82410 100644 --- a/scripts/commands/weather.ts +++ b/src/scripts/commands/weather.ts @@ -1,5 +1,5 @@ import { weatherReply } from "../weatherNotice.js"; -import { ueuse } from "types/types"; +import { ueuse } from "src/types/types.js"; export default function Weather(data: ueuse) { weatherReply(data.uniqid); diff --git a/scripts/earthquakeNotice.ts b/src/scripts/earthquakeNotice.ts similarity index 99% rename from scripts/earthquakeNotice.ts rename to src/scripts/earthquakeNotice.ts index 034b630..b0ee0f2 100644 --- a/scripts/earthquakeNotice.ts +++ b/src/scripts/earthquakeNotice.ts @@ -1,5 +1,5 @@ import WebSocket from "ws"; -import sendMail from "../src/mailer.js"; +import sendMail from "../src/lib/mailer.js"; import config from "../config.js"; diff --git a/scripts/eventday.ts b/src/scripts/eventday.ts similarity index 100% rename from scripts/eventday.ts rename to src/scripts/eventday.ts diff --git a/scripts/eventdayData.ts b/src/scripts/eventdayData.ts similarity index 100% rename from scripts/eventdayData.ts rename to src/scripts/eventdayData.ts diff --git a/scripts/successExit.ts b/src/scripts/successExit.ts similarity index 94% rename from scripts/successExit.ts rename to src/scripts/successExit.ts index 0a4f178..4f54d79 100644 --- a/scripts/successExit.ts +++ b/src/scripts/successExit.ts @@ -2,7 +2,7 @@ import * as fs from "fs"; import { isAfter } from "date-fns"; import config from "../config.js"; -import sendMail from "../src/mailer.js"; +import sendMail from "../src/lib/mailer.js"; export default function successExit() { // 初期化 diff --git a/scripts/timeNotice.ts b/src/scripts/timeNotice.ts similarity index 96% rename from scripts/timeNotice.ts rename to src/scripts/timeNotice.ts index da5b5bc..9bbf67b 100644 --- a/scripts/timeNotice.ts +++ b/src/scripts/timeNotice.ts @@ -1,6 +1,6 @@ import { format } from "date-fns"; -import type * as types from "types/types"; +import type * as types from "src/types/types.js"; import config from "../config.js"; export default async function timeNotice() { diff --git a/scripts/weatherNotice.ts b/src/scripts/weatherNotice.ts similarity index 96% rename from scripts/weatherNotice.ts rename to src/scripts/weatherNotice.ts index e310230..082486e 100644 --- a/scripts/weatherNotice.ts +++ b/src/scripts/weatherNotice.ts @@ -1,6 +1,6 @@ -import { cityList } from "../src/weatherId.js"; +import { cityList } from "../src/constants/weatherId.js"; -import type * as types from "types/types"; +import type * as types from "src/types/types.js"; import config from "../config.js"; diff --git a/types/config.d.ts b/src/types/config.d.ts similarity index 100% rename from types/config.d.ts rename to src/types/config.d.ts diff --git a/types/types.d.ts b/src/types/types.d.ts similarity index 100% rename from types/types.d.ts rename to src/types/types.d.ts diff --git a/types/ws.d.ts b/src/types/ws.d.ts similarity index 100% rename from types/ws.d.ts rename to src/types/ws.d.ts