feat: 为sendername增加群昵称

This commit is contained in:
tcmofashi
2025-03-03 09:48:50 +08:00
parent decd577649
commit b8bd45d429
3 changed files with 6 additions and 7 deletions

2
.env
View File

@@ -1,5 +1,5 @@
# 您不应该修改默认值,这个文件被仓库索引,请修改.env.prod
ENVIRONMENT=prod
ENVIRONMENT=dev
# HOST=127.0.0.1
# PORT=8080

View File

@@ -1,11 +1,11 @@
[bot]
qq = 123
nickname = "麦麦"
qq = 3488737411
nickname = "小千"
[message]
min_text_length = 2
max_context_size = 15
emoji_chance = 0.2
emoji_chance = 0.0
[emoji]
check_interval = 120
@@ -29,8 +29,7 @@ enable_advance_output = true
[groups]
talk_allowed = [
123,
123,
583449463
]
talk_frequency_down = []
ban_user_id = []

View File

@@ -61,7 +61,7 @@ class WillingManager:
if is_mentioned_bot and user_id == int(964959351):
reply_probability = 1
return reply_probability+0.5
return reply_probability
def change_reply_willing_sent(self, group_id: int):
"""开始思考后降低群组的回复意愿"""