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 # 您不应该修改默认值,这个文件被仓库索引,请修改.env.prod
ENVIRONMENT=prod ENVIRONMENT=dev
# HOST=127.0.0.1 # HOST=127.0.0.1
# PORT=8080 # PORT=8080

View File

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

View File

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