Skip to content
This repository was archived by the owner on Mar 3, 2024. It is now read-only.

hotfix:DB読み込めない問題の解決 #102

Open
wants to merge 98 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
46d822d
主にコンソールとエラーを変更
anmoti May 14, 2023
5c79d07
間違えました。
anmoti May 14, 2023
6a218dc
server-infoを1024文字までに制限しようと思った
anmoti May 14, 2023
f6fdb34
めっちゃ変えた
anmoti May 15, 2023
6bcfd4e
途中経過!動きません!
anmoti May 16, 2023
5b1bf2a
update subcommand
anmoti May 16, 2023
3c77529
update minecraft command
anmoti May 17, 2023
16b0c20
oldCommandに分けました。
anmoti May 17, 2023
1d75d0a
update event loading logger
anmoti May 17, 2023
a01fdb9
slashcommandの実行を修正
anmoti May 17, 2023
2c6f971
いろいろ(主にspeak)
anmoti May 17, 2023
1c150f7
setvoiceのバグ修正
anmoti May 17, 2023
88bf415
イベント系
anmoti May 17, 2023
49a3a05
チケットのバグ修正
anmoti May 17, 2023
3640aa7
debug消すの忘れてた
anmoti May 17, 2023
de25798
log機能を一部追加
anmoti May 17, 2023
a07f6c3
「サーバー情報」がアップデートされたぞ!
Puton1221 May 18, 2023
3968ab4
log と env を 修正
anmoti May 18, 2023
ecf2f41
userinfo追加 and miscへ移動
Puton1221 May 18, 2023
577c909
userinfo追加
Puton1221 May 18, 2023
d031923
Merge branch 'develop' of https://github.com/KuronekoServer/newer-kur…
Puton1221 May 18, 2023
5483c19
log のチャンネルの設定
anmoti May 18, 2023
8c6a3b7
CustomEmbedでtimestampが指定されていない場合、自動で送信時にtimestampを追加
anmoti May 18, 2023
ce685dd
ギルドが削除された際にbotのボイスチャンネルの接続を削除するように
anmoti May 18, 2023
0cf32b9
guilddeleteのoldを削除
anmoti May 18, 2023
e986d9a
reportに対応
anmoti May 18, 2023
37f8362
userinfoの調整, serverinfoをdmで使えなくした
anmoti May 18, 2023
a26f935
add ts2time
anmoti May 18, 2023
b159c4e
New URLs
maamokun May 18, 2023
9c352e6
artifacter cards CDN
maamokun May 18, 2023
53f3a2f
manage 修正
anmoti May 18, 2023
3956239
class Databaseを追加
anmoti May 18, 2023
d6a8f0c
Merge branch 'develop' of https://github.com/KuronekoServer/newer-kur…
anmoti May 18, 2023
4702397
いろいろ
anmoti May 18, 2023
6d0aa98
pingコマンドを作成
anmoti May 19, 2023
a1eb2cd
pollのリアクションフィルターが機能してなかったので修正
anmoti May 19, 2023
202fbd8
guildbanのエラーの修正&デザイン変更
anmoti May 19, 2023
69f90fd
msgURLが機能してなかったので一から書き直した
anmoti May 19, 2023
edb9504
細かな修正
anmoti May 19, 2023
cf4625e
ticketのSQLを新しいものに
anmoti May 19, 2023
d00d124
ユーザーへのメンションをデフォルトでfalseにした
anmoti May 19, 2023
6e5bbc3
msgURLの修正
anmoti May 19, 2023
66359cd
manage showをsettingsに変更
anmoti May 19, 2023
a914cf1
fix:ちょっとしたバグ修正
TanakaTakeshikun May 20, 2023
00eb530
Merge pull request #91 from TanakaTakeshikun/develop
TanakaTakeshikun May 20, 2023
648b1a5
ミスった
TanakaTakeshikun May 20, 2023
ce3937a
Merge pull request #92 from TanakaTakeshikun/develop
TanakaTakeshikun May 20, 2023
4e0a318
feat:ダッシュボードの作成
TanakaTakeshikun May 20, 2023
f65dcb2
Merge pull request #93 from TanakaTakeshikun/develop
TanakaTakeshikun May 20, 2023
907c6a1
いらないものなくした
anmoti May 21, 2023
146a512
Delete favicon.ico
maamokun May 22, 2023
3b09b10
improved favicon
maamokun May 22, 2023
b80db5e
Merge branch 'develop' of https://github.com/KuronekoServer/newer-kur…
anmoti May 22, 2023
22943cd
死活管理urlがなかったら実行しないように
anmoti May 23, 2023
559e7fe
READMEに追加
anmoti May 23, 2023
3e6c741
EmbedPagesを追加
anmoti May 23, 2023
cc70efe
Helpコマンド自動でビルドするようにした
anmoti May 23, 2023
646d164
envからバージョンとってくるんじゃなくてpackage.jsonからとってくるように
anmoti May 23, 2023
1b49a0a
とりあえずまだ変えてないけどexampleを置いておく
anmoti May 23, 2023
fb9eae5
collecterが正常動作なのにエラーを出力するので直した
anmoti May 24, 2023
79b8a54
process.envをだいたいなくした
anmoti May 24, 2023
af3769e
ignoreにconfig.jsを追加
anmoti May 24, 2023
26f0eb9
readの書き直し
anmoti May 24, 2023
6c328fb
SlashCommandHandlerでprocess.envを使わなくていいようにした
anmoti May 24, 2023
b0fc908
messageCommandに対応させました
anmoti Jun 4, 2023
7833878
デザイン変更
TanakaTakeshikun Jun 4, 2023
0a1c1cd
Merge pull request #95 from TanakaTakeshikun/develop
TanakaTakeshikun Jun 4, 2023
32c8978
いろいろやった
anmoti Jun 6, 2023
153ff4d
helpコマンド
anmoti Jun 6, 2023
e4ce0b9
minecraft(serverinfo java のみ)
anmoti Jun 8, 2023
6d5bc81
主にsql周りの変更と speakコマンドを消しました。
anmoti Jun 28, 2023
fedd44a
interaction.replyで引数にcontentが使えなかった
anmoti Jun 28, 2023
fa3f761
メッセージの展開
anmoti Jun 29, 2023
f53dc06
speakのコマンドの残りかすを削除してしまった
anmoti Jun 29, 2023
64de39c
fix: autocompleteが空でも返されるようにした
anmoti Jun 29, 2023
e2c96fe
Update: minecraftのサーバーのデフォルト画像の保存先を./assetsに移動
anmoti Jun 29, 2023
6685a48
fix: messageCommandのautocompleteの処理を修正
anmoti Jun 29, 2023
70361f7
fix: helpコマンドでエラーが出る問題の修正
anmoti Jul 2, 2023
799fc3c
update: configファイルをtsからjsに戻した
anmoti Jul 3, 2023
65967a4
fix: サーバーの時刻がずれていると正確にpingが取得できない問題
anmoti Jul 3, 2023
367bacd
fix: subcommandGroupsにpathを指定するとエラーになる問題
anmoti Jul 3, 2023
2589ece
update: minecraft serverinfoのコマンドをbedrockで使えるように
anmoti Jul 3, 2023
d461ef7
fix: sqlが機能していなかった問題
anmoti Jul 4, 2023
a1a948b
debugが出力されていたのを消した
anmoti Jul 4, 2023
1fe5fa1
fix: executeが正確に機能捨ていなかった問題
anmoti Jul 4, 2023
2a38cb8
update: command.buildでビルダーを指定できるように
anmoti Jul 4, 2023
070b455
fix: manage kickで実行者と対象ユーザーが表示されていなかった
anmoti Jul 4, 2023
8928a95
fix: 前変更したものがコマンドファイルまで提供されてなかった
anmoti Jul 4, 2023
3306d3e
update: とりあえず未使用の定義があったので削除
anmoti Jul 4, 2023
52f6dcd
update: 簡略化によりisPromiseが必要なくなったので削除
anmoti Jul 4, 2023
425518f
fix,change:.envの表記の変更,死活監視の廃止
kuroneko6423 Jul 30, 2023
c431b3d
fix:確実に閉じるように
TanakaTakeshikun Oct 6, 2023
b561a5d
Merge pull request #101 from TanakaTakeshikun/develop
TanakaTakeshikun Oct 6, 2023
eceda37
Update package.json
kuroneko6423 Mar 3, 2024
caef9c3
Create LICENSE
kuroneko6423 Mar 3, 2024
5f9e4c0
Update package.json
kuroneko6423 Mar 3, 2024
7b13950
rename
kuroneko6423 Mar 3, 2024
d13bf8e
Update and rename .env to .env_sample
kuroneko6423 Mar 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .env

This file was deleted.

33 changes: 33 additions & 0 deletions .env_sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#DiscordBOT-Settings
TOKEN=DiscordBOT-TOKEN
clientId=DiscordBOT-clientId
#mysqlDB-Settings
db_host = "localhost"
db_user = "root"
db_password = "root"
db_port = 3306
db_limit = 5 #int(接続を試みる時間)
db_name = "kuronekobot-4.0"#DBの名前(SQLにログインしてcreate database hogeで作成)
#FTPandWebServer-Settings
core_host="server-ip"
core_account="user"
core_password="pass"
core_port="21"
#音声合成
voicevox="http://127.0.0.1:50021"
COEIROINK="http://127.0.0.1:50031"
SHAREVOX="http://127.0.0.1:50025"
exvoice="./exvoice"
max_message=50#最大メッセージ数(以下省略まで)
timeout=30#合成する際のタイムアウトの時間(秒)
#Twitch等のチャット読み上げ
maxFreeSockets=100#ソケットエラー出たら増やす(増えるほどリソース食います)
maxTotalSockets=200#ソケットエラー出たら増やす(増えるほどリソース食います)
maxSockets=100#ソケットエラー出たら増やす(増えるほどリソース食います)
#エラー等の
errorwebhook="webhookurl"
reportwebhookurl="webhookurl"
#BOTの設定
version="1.0.3"#上がるタイミング分からんけど書いとく
#webのスクショのプロキシ
Proxy="http proxy"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,5 @@ dist
# TernJS port file
.tern-port

.env
.env
config.js
201 changes: 201 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

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.
33 changes: 17 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 次世代型黒猫ちゃんBOT
# Why? Update?
## Why? Update?
最近DiscordのBOT界隈が賑やかになり、色々なBOTが世の中に出続けている。
これを機に黒猫ちゃんBOTも進化せず何をするというのか。(迫真)

Expand All @@ -8,8 +8,6 @@
BOTはあらゆる点に置いて大変な作業が多いのである!(ha
今こそ新たな黒猫ちゃんBOTを作ってKuronekoServerの代表BOTを作ろうでは無いか!!



起動法

1.mariadbを構築
Expand All @@ -28,29 +26,32 @@ BOTはあらゆる点に置いて大変な作業が多いのである!(ha
`sudo apt install libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0`
おしまい<=足りないところあったら付け足しといて(複雑になってきた)

補足

npm run speechlistで音声の最新情報を保存する


....




.............
## コマンドを追加するときの注意点
コマンド名が"none"だとhelpコマンドに表示されません。
できるだけほかのコマンドと同じ書き方にしてください。
・CustomEmbedを用いてください。 (CustomEmbed.typeError や .typeSuccessなどを活用してください)
・むやみにeventにコマンド専用のコードを追加する
> ボタン押下時などはawaitMessageComponentなどを活用してください。
など

、以上

## 補足

npm run speechlistで音声の最新情報を保存する


......................


## あとがき
.....
..........
...............
....................

って言うのは前置きで黒猫ちゃんの

> 新しいのはDBがあってその関係で動かせないからDBを使わないbotを作った方がいい気がした()
> あと黒猫ちゃんbotをやめて沢城さんみたいな個性のあるbotを作りたいと思っている

っという発言である!(殴
という発言である!(殴
Binary file added assets/minecraft_server_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading