Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed unneeded "NOT A SPAM" button from "spam detected" message #52

Merged
merged 1 commit into from
Sep 10, 2024

removed unneeded "NOT A SPAM" button from "spam detected" message as …

e126fe4
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

removed unneeded "NOT A SPAM" button from "spam detected" message #52

removed unneeded "NOT A SPAM" button from "spam detected" message as …
e126fe4
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test results succeeded Sep 10, 2024 in 0s

23 passed, 0 failed and 0 skipped

Tests passed successfully

✅ src/VahterBanBot.Tests/TestResults/test-results.trx

23 tests were completed in 85s with 23 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
BaseTests+BaseTests 3✅ 144ms
PingTests+PingTests 2✅ 429ms
VahterBanBot.Tests.BanTests+BanTests 6✅ 473ms
VahterBanBot.Tests.MessageTests+MessageTests 1✅ 420ms
VahterBanBot.Tests.MLBanTests+MLBanTests 11✅ 231ms

✅ BaseTests+BaseTests

✅ Not possible to interact with the bot without authorization
✅ Random path returns OK
✅ Should be possible to interact with the bot

✅ PingTests+PingTests

✅ Message got recorded
✅ Message not recorded if chat is not on the list

✅ VahterBanBot.Tests.BanTests+BanTests

✅ NON Vahter can't ban on reply
✅ Only Vahter can unban user
✅ Vahter can ban on reply
✅ Vahter can unban user
✅ Vahter can't ban another vahter
✅ Vahter can't ban on reply in non-allowed chat

✅ VahterBanBot.Tests.MessageTests+MessageTests

✅ All data from the message being saved

✅ VahterBanBot.Tests.MLBanTests+MLBanTests

✅ If message got auto-deleted we can mark it as false-positive with a button click
✅ Message IS autobanned if it is a known false-negative spam
✅ Message IS autobanned if it looks like a spam
✅ Message is NOT autobanned if it has a stopword in specific chat
✅ Message is NOT autobanned if it is a known false-positive spam
✅ Message is NOT autobanned if it looks like a spam BUT local admin sent it
✅ Message is NOT autobanned if it looks like a spam BUT vahter sent it
✅ Only vahter can press THE BUTTON(s)
✅ User can be saved from auto ban by vahter marking it false-positive
✅ User can recover from autoban by sending good messages
✅ User will be autobanned after consecutive spam