Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Sekai Update(v14-dev to v14-stable merge) #102

Merged
merged 965 commits into from
Jun 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
965 commits
Select commit Hold shift + click to select a range
6d7ab19
check UDP追加
takejohn Mar 6, 2024
002576e
言語追加
takejohn Mar 6, 2024
f662c63
ホスト名の正規表現
takejohn Mar 6, 2024
0328010
Merge pull request #58 from takejohn/feature/check-host-command-integ…
ringo360 Mar 6, 2024
7d18dd7
依存関係のマイナーアップデート
takejohn Mar 7, 2024
9378248
中度の脆弱性に対処
takejohn Mar 7, 2024
3b2eb47
mongooseアップデート
takejohn Mar 7, 2024
a44de89
ja, enに欠けていた項目を追加
takejohn Mar 7, 2024
53865e1
uwu
ringo360 Mar 7, 2024
6bb9e7e
receiveupdate.js, reply.jsのテキストを言語ファイルに移動
takejohn Mar 7, 2024
7037c23
SimpleSlashCommandBuilderとi18n
takejohn Mar 7, 2024
e2e7d1b
言語設定が適応されていなかった問題を修正
takejohn Mar 7, 2024
3920d51
デフォルト値をi18n
takejohn Mar 7, 2024
b808b4d
説明文を修正
takejohn Mar 8, 2024
7fb85fb
prettier
takejohn Mar 8, 2024
59c97b5
Merge pull request #59 from takejohn/dev/language-fill
ringo360 Mar 8, 2024
0bc5871
discordbot.jsでMongoDBに接続
takejohn Mar 8, 2024
7fc3813
Merge pull request #61 from takejohn/patch/lasy-mongodb-connection
ringo360 Mar 8, 2024
c2e9532
CommandManagerクラス作成
takejohn Mar 11, 2024
13ca7d0
プレイヤーのコマンドを移動
takejohn Mar 11, 2024
44cf187
types.jsをtypes.tsに
takejohn Mar 11, 2024
c3ab7f2
未使用ファイルを削除
takejohn Mar 11, 2024
4491ba8
プレイヤーのイベントリスナーをplayerパッケージに移動
takejohn Mar 11, 2024
8b70ee2
Web APIを使用するコマンドを移動
takejohn Mar 11, 2024
90cc86c
Web APIを使用するコードを移動
takejohn Mar 11, 2024
983875d
パッケージとしてインポート
takejohn Mar 11, 2024
e726e07
TempLinkのコードを移動
takejohn Mar 11, 2024
aaffaed
CDNのコードを移動
takejohn Mar 11, 2024
8c1a7f2
管理者用コマンドのコードを移動
takejohn Mar 11, 2024
4d4afea
その他のコマンドをmiscパッケージに
takejohn Mar 11, 2024
0b74df6
featureを自動ロード
takejohn Mar 11, 2024
9cbf227
Merge pull request #64 from takejohn/feature/62-features
ringo360 Mar 12, 2024
bf425d5
TypeScriptを使用可能に
takejohn Mar 13, 2024
584a28e
設定を追加
takejohn Mar 13, 2024
c1c868e
ファイル名変更
takejohn Mar 13, 2024
6e79a53
JSDocをTSの型定義に変換
takejohn Mar 13, 2024
9d7818c
TSに変更
takejohn Mar 13, 2024
6db0bcc
JSDocをTSの型に
takejohn Mar 13, 2024
7131c5e
TSファイルに
takejohn Mar 13, 2024
c2a2e8d
適合させる
takejohn Mar 13, 2024
7f75172
TS
takejohn Mar 13, 2024
1c25bab
コマンドをTSに
takejohn Mar 13, 2024
a882a07
ts-checkの付いたファイルをTSに
takejohn Mar 13, 2024
a08bb52
TSの依存関係をdevDependenciesに移動
takejohn Mar 13, 2024
23b74ed
Merge branch 'dev/enable-ts' into dev/js-to-ts
takejohn Mar 13, 2024
fa61f25
mainのファイル指定を修正
takejohn Mar 13, 2024
ca13f1b
暗黙のanyを禁止
takejohn Mar 13, 2024
b41da8f
Merge pull request #65 from takejohn/dev/enable-ts
ringo360 Mar 14, 2024
5551507
Merge branch 'v14-dev' of https://github.com/TeamSekai/Sekai.Explode …
ringo360 Mar 14, 2024
6ef1540
Merge branch 'v14-dev' into dev/js-to-ts
takejohn Mar 14, 2024
00ca4af
Apply Prettier
takejohn Mar 14, 2024
44ff29a
Merge pull request #67 from takejohn/dev/js-to-ts
ringo360 Mar 14, 2024
6d8f47e
owo
ringo360 Mar 14, 2024
507118c
complete report system
ringo360 Mar 16, 2024
707d225
oopsie
ringo360 Mar 16, 2024
46d5720
my brain issue
ringo360 Mar 16, 2024
b161f54
fix interaction
ringo360 Mar 16, 2024
c975256
okay, I fixed modal issue
ringo360 Mar 16, 2024
aba4ab2
prettier moment
ringo360 Mar 16, 2024
ea2964c
文字数制限に中指
ringo360 Mar 16, 2024
910f5c6
fuckfuckfuckfuck
ringo360 Mar 16, 2024
841c408
これで絶対いける
ringo360 Mar 16, 2024
46b8c63
idk
ringo360 Mar 16, 2024
bae8975
huskyとlint-staged導入
takejohn Mar 16, 2024
bdd2615
Prettierで書き込み
takejohn Mar 16, 2024
a078ceb
Merge branch 'v14-dev' into dev/prohibit-unchi-code🚫💩
takejohn Mar 16, 2024
27eafb1
maybe it works
ringo360 Mar 16, 2024
a87d71c
prettier
ringo360 Mar 16, 2024
8e2dd27
Merge branch 'v14-dev' into dev/prohibit-unchi-code🚫💩
takejohn Mar 16, 2024
03a0b33
Merge pull request #69 from takejohn/dev/prohibit-unchi-code🚫💩
ringo360 Mar 16, 2024
373a764
owo
ringo360 Mar 16, 2024
09df307
owo
ringo360 Mar 16, 2024
fdeb484
Merge branch 'v14-dev' of https://github.com/TeamSekai/Sekai.Explode …
ringo360 Mar 16, 2024
84cc9f9
cool visual, cool system
ringo360 Mar 16, 2024
49764eb
okay
ringo360 Mar 16, 2024
1fc8a93
some changes
ringo360 Mar 16, 2024
8815bec
Goodbye ts-node, hello tsx
takejohn Mar 17, 2024
0c5d3f7
ログファイルの書き込みを非同期化
takejohn Mar 17, 2024
1a62a0e
関数名変更
takejohn Mar 17, 2024
e0ac966
Featureのロードにimportを使用
takejohn Mar 17, 2024
e0577b6
checkスクリプトを作成
takejohn Mar 17, 2024
568614c
起動にかかった時間を出力
takejohn Mar 17, 2024
cf7c14b
Merge pull request #72 from takejohn/feature/start-up-optimization
ringo360 Mar 17, 2024
dfbea5a
good! workflowを調整してやった
ringo360 Mar 18, 2024
74e9324
uwu
ringo360 Mar 19, 2024
5574bd0
calコマンド作成
takejohn Mar 21, 2024
33d00cc
1列のカレンダー
takejohn Mar 21, 2024
7cde4d7
Dayクラスを作成
takejohn Mar 22, 2024
7669e64
表形式のカレンダー
takejohn Mar 22, 2024
84812d8
言語ファイルを使用
takejohn Mar 22, 2024
943a9cb
canvasに描画
takejohn Mar 26, 2024
6a64bb4
ログ出力を削除
takejohn Mar 27, 2024
88246dc
fix undefinedmoment
ringo360 Mar 27, 2024
498d30e
getTextInputValueの値を修正
ringo360 Mar 27, 2024
1f6816b
均等に配置
takejohn Mar 27, 2024
386cc38
it's 私のせい
ringo360 Mar 27, 2024
fba6051
botを阻止
ringo360 Mar 27, 2024
54b1981
文字数制限
ringo360 Mar 27, 2024
a67302b
はい。modalで可能です。
ringo360 Mar 27, 2024
fe75f9b
maybe okay
ringo360 Mar 27, 2024
4586243
undefinedmomentですあはは
ringo360 Mar 27, 2024
6377bc0
曜日の色
takejohn Mar 27, 2024
2bc44c0
タイトルを変更
takejohn Mar 27, 2024
c7bbbf0
CanvasTextBox内のテキスト位置を調整
takejohn Mar 27, 2024
32202ca
画像にタイトル追加
takejohn Mar 27, 2024
93083fe
他の月の日付を薄く、今日を太字に
takejohn Mar 27, 2024
9d3761c
フォントファイル読み込み
takejohn Mar 27, 2024
7119dce
thanks, takejohn!
ringo360 Mar 27, 2024
b1b6e0d
Merge pull request #76 from TeamSekai/feature/dm-modal
ringo360 Mar 27, 2024
ca73068
私のミス!
ringo360 Mar 28, 2024
3c4369a
オプション追加
takejohn Mar 28, 2024
d7de657
秒数変更
ringo360 Mar 28, 2024
42c7533
Merge pull request #78 from TeamSekai/bugfix/report-limit
ringo360 Mar 28, 2024
b6ade2b
祝日に対応
takejohn Mar 28, 2024
411a414
i18n対応と微調整
ringo360 Mar 28, 2024
f985575
i18n
takejohn Mar 28, 2024
a19e080
go
ringo360 Mar 28, 2024
320fa1d
undefinedをころす
ringo360 Mar 28, 2024
39aeb5e
Merge pull request #79 from takejohn/feature/54-command-cal
ringo360 Mar 28, 2024
00c5cf7
今日の色を反転
takejohn Mar 28, 2024
2f94653
1日が週の始まりの前日だと2日から始まる問題を修正
takejohn Mar 28, 2024
8bc3e9e
Merge pull request #80 from takejohn/feature/cal-today
ringo360 Mar 28, 2024
4135c95
configの型チェック
takejohn Mar 30, 2024
fa5cbca
jest落ちる問題解消
takejohn Mar 30, 2024
9f5b659
Merge pull request #81 from takejohn/dev/proxied-config
ringo360 Mar 30, 2024
a83e1ff
Update README.md
ringo360 Mar 31, 2024
9597d3d
エイプリルフールはもう終わってます
ringo360 Apr 2, 2024
ff7974f
依存関係の更新
takejohn Apr 4, 2024
c53df55
Merge pull request #83 from takejohn/patch/73-upgrade-discord-player
ringo360 Apr 4, 2024
f25bac0
Featureを抽象クラスに
takejohn Apr 4, 2024
15dd382
Featureを抽象クラスに
takejohn Apr 4, 2024
73d2621
Featureの依存関係を定義できるように
takejohn Apr 4, 2024
7a71aae
Featureの依存関係を定義できるように
takejohn Apr 4, 2024
d45ed46
messages.tsを移動
takejohn Apr 4, 2024
8cba33d
messages.tsを移動
takejohn Apr 4, 2024
e0ad782
mongodbのコードをdb featureに移動
takejohn Apr 4, 2024
0a1ac82
mongodbのコードをdb featureに移動
takejohn Apr 4, 2024
18252cd
テストが通らなかった問題を修正
takejohn Apr 4, 2024
b1b2c87
テストが通らなかった問題を修正
takejohn Apr 4, 2024
81a0948
データベースの機能をラップ
takejohn Apr 5, 2024
048e881
データベースの機能をラップ
takejohn Apr 5, 2024
7b43e43
LokiJSによる実装を追加
takejohn Apr 5, 2024
91d0d30
LokiJSによる実装を追加
takejohn Apr 5, 2024
5a29f8a
設定でLokiJSを使用できるように
takejohn Apr 5, 2024
ee7e83b
設定でLokiJSを使用できるように
takejohn Apr 5, 2024
12f591e
MongoDBのエラー修正
takejohn Apr 5, 2024
860cb6e
MongoDBのエラー修正
takejohn Apr 5, 2024
267f1f2
変な定義を修正
takejohn Apr 5, 2024
2023af9
変な定義を修正
takejohn Apr 5, 2024
fa34b01
Merge branch 'v14-dev' into feature/75-loki
takejohn Apr 5, 2024
1563db7
Merge branch 'v14-dev' into feature/75-loki
takejohn Apr 5, 2024
0a11385
Merge pull request #85 from takejohn/feature/75-loki
ringo360 Apr 5, 2024
32d3e1d
Merge pull request #85 from takejohn/feature/75-loki
ringo360 Apr 5, 2024
9bc70bf
エイプリルフールが残ってた
ringo360 Apr 5, 2024
ff9b2b6
エイプリルフールが残ってた
ringo360 Apr 5, 2024
6b19435
Expressのインストール先をtemplinkに移動
takejohn Apr 7, 2024
714220d
Expressのインストール先をtemplinkに移動
takejohn Apr 7, 2024
6e4437a
Templinkのaccesslog.txtの場所を修正
takejohn Apr 7, 2024
53c05c9
Templinkのaccesslog.txtの場所を修正
takejohn Apr 7, 2024
4cfb704
一部機能を無効化できるように
takejohn Apr 7, 2024
6df8c20
一部機能を無効化できるように
takejohn Apr 7, 2024
cf1eeec
コマンドロードのメッセージの表示タイミングを修正
takejohn Apr 7, 2024
3569a92
コマンドロードのメッセージの表示タイミングを修正
takejohn Apr 7, 2024
b66a612
Merge pull request #89 from takejohn/feature/disable-features
ringo360 Apr 7, 2024
ebd95df
Merge pull request #89 from takejohn/feature/disable-features
ringo360 Apr 7, 2024
e9c2db0
tsファイルに
takejohn Apr 7, 2024
301597c
tsファイルに
takejohn Apr 7, 2024
ff9577f
TSの書き方
takejohn Apr 7, 2024
7ae76f2
TSの書き方
takejohn Apr 7, 2024
eb32fc1
fetchを使用
takejohn Apr 7, 2024
4d4df34
fetchを使用
takejohn Apr 7, 2024
470a778
Merge pull request #90 from TeamSekai/patch/77-upload-unsupported-med…
ringo360 Apr 9, 2024
65f700d
Merge pull request #90 from TeamSekai/patch/77-upload-unsupported-med…
ringo360 Apr 9, 2024
8356222
dateコマンド作成
takejohn Apr 26, 2024
0a2a4d8
dateコマンド作成
takejohn Apr 26, 2024
e20aea9
devスクリプト作成
takejohn Apr 26, 2024
7bd857c
devスクリプト作成
takejohn Apr 26, 2024
a46ee56
CompoundCommandクラスを作成
takejohn Apr 26, 2024
96aaf96
CompoundCommandクラスを作成
takejohn Apr 26, 2024
36cb685
date diffサブコマンド作成
takejohn Apr 27, 2024
7ac3ec4
date diffサブコマンド作成
takejohn Apr 27, 2024
70ef413
型チェックを厳密に
takejohn Apr 27, 2024
07a432a
型チェックを厳密に
takejohn Apr 27, 2024
8172cad
日付の表現を変更
takejohn Apr 27, 2024
5a20e33
日付の表現を変更
takejohn Apr 27, 2024
a82c007
言語ファイル設定
takejohn Apr 28, 2024
0b73a16
言語ファイル設定
takejohn Apr 28, 2024
5a439b3
日時をフォーマット
takejohn Apr 28, 2024
f3b5b3e
日時をフォーマット
takejohn Apr 28, 2024
2ffb5d3
DayをCalendarDateに改名
takejohn Apr 28, 2024
4a671da
DayをCalendarDateに改名
takejohn Apr 28, 2024
76ecfb6
日付の差を年と日で表示
takejohn Apr 28, 2024
f8c7c06
日付の差を年と日で表示
takejohn Apr 28, 2024
145336d
前か後かを表示
takejohn Apr 28, 2024
8adaa15
前か後かを表示
takejohn Apr 28, 2024
f439140
重複した言語キーを削除
takejohn Apr 28, 2024
f5943a1
重複した言語キーを削除
takejohn Apr 28, 2024
180c53f
dateコマンドのi18n
takejohn Apr 28, 2024
a35dec4
dateコマンドのi18n
takejohn Apr 28, 2024
9170568
Merge pull request #95 from TeamSekai/feature/date-and-calculation
ringo360 Apr 28, 2024
168fb5f
Merge pull request #95 from TeamSekai/feature/date-and-calculation
ringo360 Apr 28, 2024
08dd9cc
uwu
ringo360 Apr 28, 2024
7632d86
uwu
ringo360 Apr 28, 2024
16af78d
auau
ringo360 Apr 28, 2024
bc5cf29
auau
ringo360 Apr 28, 2024
bd89404
Merge branch 'v14-dev' of https://github.com/TeamSekai/Sekai.Explode …
ringo360 Apr 28, 2024
5db42ae
Merge branch 'v14-dev' of https://github.com/TeamSekai/Sekai.Explode …
ringo360 Apr 28, 2024
a12ab04
しんで
ringo360 Apr 28, 2024
5515f93
images Featureを作成
takejohn Apr 29, 2024
684c6c9
adminパッケージでコマンドを静的インポート
takejohn Apr 30, 2024
9aa60fb
coreパッケージ作成
takejohn Apr 30, 2024
aa905e5
commonディレクトリをcoreに移動
takejohn Apr 30, 2024
3b17570
internalディレクトリをcoreに移動
takejohn Apr 30, 2024
7282579
utilディレクトリをcoreに移動
takejohn Apr 30, 2024
996543d
テストが通らない問題を修正
takejohn Apr 30, 2024
d9a694d
wait wha-----------
ringo360 May 2, 2024
1c50e66
.gitignoreに接尾辞付きのログファイルを追加
takejohn May 2, 2024
06baa9e
config.jsonでなくcore経由でインポート
takejohn May 2, 2024
89ac022
Merge branch 'v14-dev' into dev/74-refactoring
takejohn May 2, 2024
e8d7be5
コマンドロードのコードCommandManagerに移動
takejohn May 2, 2024
31901a6
canvasを使用する機能をImages Featureに移動
takejohn May 2, 2024
b5f1845
configでImagesを切れるように
takejohn May 2, 2024
5a8550a
Merge remote-tracking branch 'refs/remotes/origin/v14-dev' into v14-dev
ringo360 May 2, 2024
4f1e4ec
Merge pull request #96 from TeamSekai/dev/74-refactoring
ringo360 May 2, 2024
08654c7
Merge branch 'v14-dev' of https://github.com/TeamSekai/Sekai.Explode …
ringo360 May 2, 2024
4f4c485
perms Feature作成
takejohn May 3, 2024
09362c0
permコマンドを作成
takejohn May 5, 2024
6d7d32e
cachedなはず
takejohn May 6, 2024
c3be5ca
権限の確認
takejohn May 6, 2024
dbd69a0
await忘れてた
takejohn May 6, 2024
dd386a2
PermissionManagerクラス作成
takejohn May 7, 2024
703ecb5
自動応答の編集権限をコマンドで設定できるように
takejohn May 7, 2024
344bf20
自動補完機能
takejohn May 8, 2024
97e150d
registerPermissionメソッドの作成
takejohn May 8, 2024
aa0e2a9
/perm removeサブコマンド作成
takejohn May 8, 2024
9a830e6
権限情報を埋め込みに
takejohn May 9, 2024
0b77fd4
i18n
takejohn May 9, 2024
d1aa0d8
選択肢の形式を変更
takejohn May 9, 2024
04c0e0c
hasPermissionメソッドの作成
takejohn May 9, 2024
7bc19af
Create README_CN.md
xia-mc May 9, 2024
783b7ab
Update README_CN.md
xia-mc May 9, 2024
16f8f09
Update README.md
xia-mc May 9, 2024
042ccca
Update README_CN.md
xia-mc May 9, 2024
4f16226
Merge pull request #99 from TeamSekai/feature/92-perms
ringo360 May 9, 2024
e6ffdc0
Update README_CN.md
xia-mc May 9, 2024
5e45ffa
Merge pull request #100 from xia-mc/v14-dev
ringo360 May 9, 2024
ad2913e
loop実装
ringo360 May 31, 2024
2f1a37c
devlog lol
ringo360 May 31, 2024
d2262f9
oopsie, I forgot
ringo360 May 31, 2024
ae572c2
Merge pull request #101 from TeamSekai/feature/music-loop
ringo360 May 31, 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
Prev Previous commit
Next Next commit
messages.tsを移動
  • Loading branch information
takejohn committed Apr 4, 2024
commit d45ed4623d57067b43a5b0c56855ac94482d2265
5 changes: 0 additions & 5 deletions discordbot.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { teeWrite } from './internal/logger';
import { ClientMessageHandler } from './internal/messages';

//* Discord.js Bot - by ringoXD -
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '1';
@@ -54,7 +53,6 @@ console.log(
const client = new Client(options);
console.log(LANG.discordbot.main.setupActivityCalling);
activity.setupActivity(client);
let messageHandler: ClientMessageHandler | undefined;

const featuresLoadPromise = fs
.readdir(path.join(__dirname, 'packages'))
@@ -106,7 +104,6 @@ client.on('ready', async (readyClient) => {
const SyslogChannel = client.channels.cache.get(syslogChannel);
assert(SyslogChannel.isTextBased());
SyslogChannel.send(LANG.discordbot.ready.sysLog);
messageHandler = new ClientMessageHandler(readyClient);
});

onShutdown(async () => {
@@ -127,8 +124,6 @@ onShutdown(async () => {

client.login(token);

client.on('messageCreate', (message) => messageHandler?.handleMessage(message));

//!EVENTS

process.on('uncaughtException', function (err) {
2 changes: 1 addition & 1 deletion packages/misc/commands/reply.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from 'assert';
import { ChatInputCommandInteraction, SlashCommandBuilder } from 'discord.js';
import { LANG } from '../../../util/languages';
import { ClientMessageHandler, ReplyPattern } from '../../../internal/messages';
import { ClientMessageHandler, ReplyPattern } from '../util/messages';
import Pager from '../../../util/pager';
import config from '../../../internal/config';
import { Command } from '../../../util/types';
27 changes: 0 additions & 27 deletions packages/misc/index.js

This file was deleted.

39 changes: 39 additions & 0 deletions packages/misc/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { ClientMessageHandler } from './util/messages';

import fs from 'fs';
import path from 'path';

import { Feature } from '../../common/Feature';
import { CommandManager } from '../../internal/commands';
import { registerConfiguredFont } from './util/canvasUtils';
import { Client } from 'discord.js';

class MiscFeature extends Feature {
name = 'misc';

messageHandler?: ClientMessageHandler;

onLoad(client: Client) {
client.on('messageCreate', (message) =>
this.messageHandler?.handleMessage(message),
);
registerConfiguredFont();
fs.readdirSync(path.join(__dirname, 'commands'), {
withFileTypes: true,
}).forEach((file) => {
const ext = path.extname(file.name);
if (!file.isFile() || (ext != '.js' && ext != '.ts')) return;
let cmds = require(path.join(__dirname, 'commands', file.name));
if ('default' in cmds) {
cmds = cmds.default;
}
CommandManager.default.addCommands(cmds);
});
}

onClientReady(client: Client<true>) {
this.messageHandler = new ClientMessageHandler(client);
}
}

export const feature = new MiscFeature();
2 changes: 1 addition & 1 deletion packages/misc/package.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
"name": "misc",
"version": "1.0.0",
"description": "",
"main": "index.js",
"main": "index.ts",
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
File renamed without changes.
4 changes: 2 additions & 2 deletions internal/messages.ts → packages/misc/util/messages.ts
Original file line number Diff line number Diff line change
@@ -16,8 +16,8 @@
*/

import axios from 'axios';
import { strFormat, LANG } from '../util/languages';
import mongodb from './mongodb';
import { strFormat, LANG } from '../../../util/languages';
import mongodb from '../../../internal/mongodb';
import { Collection } from 'mongoose';
import { Client, Message } from 'discord.js';