From 6c69ce80ef6501a77f066bfaee6bc3c723e6db80 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Tue, 1 Jul 2025 17:10:52 +0900 Subject: [PATCH] =?UTF-8?q?v3.5.1=E3=81=B8=E3=83=BB=E3=83=A9=E3=82=A4?= =?UTF-8?q?=E3=82=BB=E3=83=B3=E3=82=B9=E8=BF=BD=E5=8A=A0=E3=83=BB.env.exam?= =?UTF-8?q?ple=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 2 -- .gitignore | 3 +-- LICENSE | 13 +++++++++++++ README.md | 16 ++++++++++++++-- package.json | 2 +- 5 files changed, 29 insertions(+), 7 deletions(-) delete mode 100644 .env.example create mode 100644 LICENSE diff --git a/.env.example b/.env.example deleted file mode 100644 index a1ce411..0000000 --- a/.env.example +++ /dev/null @@ -1,2 +0,0 @@ -TOKEN= -SERVER= diff --git a/.gitignore b/.gitignore index ae6ef8c..744f163 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ /dist/ -/.env -/.env.local +/.env* /node_modules/ /package-lock.json /config.ts diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..dc11dcc --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright 2025 Last2014 + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/README.md b/README.md index c49f00b..4bef33d 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,18 @@ uwuzuで動作するお知らせBOTです。 -# .env形式 +# 設定 +examples/config.tsをプロジェクトルートへ移動し各設定を更新してください。 -`.env.example`をご覧ください。 +## 設定項目 +earthquake.reconnectTimes:地震情報のWebSocketが切断されたときに自動再接続する時間(ミリ秒) +earthquake.websocketUrl:地震情報のWebSocket接続先URL +earthquake.areasCsvUrl:地域情報のデータベース(CSV)ファイルのURL + +weather.splitCount:天気お知らせの返信の分割数(4分割を推奨) + +apiToken:BOTアカウントのAPIキー +uwuzuServer:使用するuwuzuサーバーのホスト名(uwuzu.netなど) # サーバー起動 @@ -17,3 +26,6 @@ npm run start ``` ※Node.js・npmがインストールされている必要があります。 + +# ライセンス +Apache 2.0 License diff --git a/package.json b/package.json index 598087c..08b7090 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "noticeuwuzu", - "version": "v3.5@uwuzu1.5.4", + "version": "v3.5.1@uwuzu1.5.4", "description": "uwuzu Notice Bot", "main": "dist/main.js", "scripts": {