Skip to content

Commit 64fea5e

Browse files
committed
update threshold to intercept message
and update user guide to add listbanuser
1 parent 5426372 commit 64fea5e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Application < Rails::Application
3131
# Delete the warning message in x minutes to keep chat clean
3232
config.delete_message_delay = 5
3333
# Spam blocked probability threshold
34-
config.probability_threshold = 0.95
34+
config.probability_threshold = 0.94
3535
config.chinese_space_spam_threshold = 0.8
3636
end
3737
end

config/environments/development.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
# Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
7777
# config.generators.apply_rubocop_autocorrect_after_generate!
7878

79-
config.probability_threshold = 0.95
79+
config.probability_threshold = 0.94
8080

8181
# Delete the warning message in x minutes to keep chat clean
8282
config.delete_message_delay = 1

config/locales/telegram_bot.en.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ en:
2525
start: "/start - Start using the bot"
2626
markspam: "/markspam - Delete spam messages and restrict users"
2727
feedspam: "/feedspam - Submit spam samples for training"
28-
listspam: "/listspam - View list of banned accounts"
28+
listspam: "/listspam - View list of spam messages"
29+
listbanuser: "/listbanuser - List all banned users"
2930
support: "For assistance, join our support group: @[BSS support group](https://t.me/+i8fy3qOtiNAyODZl)"
3031
errors:
3132
processing: "An error occurred while processing your request."

config/locales/telegram_bot.zh.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ zh:
2525
start: "/start - 开始使用机器人"
2626
markspam: "/markspam - 删除垃圾消息并封禁用户"
2727
feedspam: "/feedspam - 投喂垃圾信息来训练"
28-
listspam: "/listspam - 查看封禁账户列表"
28+
listspam: "/listspam - 查看拦截广告消息列表"
29+
listbanuser: "/listbanuser - 查看封禁账户列表"
2930
support: "如有问题,请加群 @[BSS 支持群](https://t.me/+i8fy3qOtiNAyODZl)。"
3031
errors:
3132
processing: "处理请求时出错。"

0 commit comments

Comments
 (0)