mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-08 21:30:01 +08:00
update 0.0.6.5
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from services.db_context import db
|
||||
from configs.config import Config
|
||||
|
||||
|
||||
class FriendUser(db.Model):
|
||||
@@ -80,7 +81,11 @@ class FriendUser(db.Model):
|
||||
user = await query.gino.first()
|
||||
if user:
|
||||
if user.nickname:
|
||||
return user.nickname
|
||||
_tmp = ""
|
||||
black_word = Config.get_config("nickname", "BLACK_WORD")
|
||||
for x in user.nickname:
|
||||
_tmp += "*" if x in black_word else x
|
||||
return _tmp
|
||||
return ""
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user