approvers / OreOreBot2

限界開発鯖を代表する BOT はらちょ を TypeScript+discord.js で作り直し。 オレオレ BOT です。別に詐欺とかはしません。
https://haracho.approvers.dev
MIT License
13 stars 2 forks source link

feat: メッセージが投稿後3秒以内に削除された場合に特殊メッセージを送信するように変更 #1249

Closed aqyuki closed 8 months ago

aqyuki commented 8 months ago

close #1247

Type of Change:

Details of implementation (実施内容)

実装したい機能を実現するために必要なフィールドを追加しました。このために発生したエラーを修正しました。 特殊メッセージを送信する条件を満たしているかを確認し、満たしている場合メッセージを切り替える処理を追加しました。また、特殊メッセージを送信する条件を満たしたときにメッセージが切り替わっていることを確認するテストを追加しました。

Additional Information (追加情報)

cloudflare-workers-and-pages[bot] commented 8 months ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: e3c9d55
Status: ✅  Deploy successful!
Preview URL: https://9facc96f.oreorebot2.pages.dev
Branch Preview URL: https://feat-quick-deletion-message.oreorebot2.pages.dev

View logs

codecov[bot] commented 8 months ago

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (bd1129f) 56.62% compared to head (e3c9d55) 56.71%.

Files Patch % Lines
packages/bot/src/service/index.ts 0.00% 5 Missing :warning:
packages/bot/src/service/deletion-repeater.ts 88.46% 0 Missing and 3 partials :warning:
packages/bot/src/server/index.ts 0.00% 2 Missing :warning:
...ot/src/adaptor/proxy/middleware/message-convert.ts 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1249 +/- ## ========================================== + Coverage 56.62% 56.71% +0.08% ========================================== Files 103 103 Lines 7020 7048 +28 Branches 515 517 +2 ========================================== + Hits 3975 3997 +22 - Misses 2531 2535 +4 - Partials 514 516 +2 ``` | [Flag](https://app.codecov.io/gh/approvers/OreOreBot2/pull/1249/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=approvers) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/approvers/OreOreBot2/pull/1249/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=approvers) | `56.71% <67.64%> (+0.08%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=approvers#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.