mirror of https://github.com/Mai-with-u/MaiBot.git
commit
e0d986cc2b
|
|
@ -165,8 +165,12 @@ class ChatBot:
|
||||||
bot_response_time = tinking_time_point
|
bot_response_time = tinking_time_point
|
||||||
|
|
||||||
if random() < global_config.emoji_chance:
|
if random() < global_config.emoji_chance:
|
||||||
emoji_path,discription = await emoji_manager.get_emoji_for_text(response)
|
emoji_raw = await emoji_manager.get_emoji_for_text(response)
|
||||||
if emoji_path:
|
|
||||||
|
# 检查是否 <没有找到> emoji
|
||||||
|
if emoji_raw != None:
|
||||||
|
emoji_path,discription = emoji_raw
|
||||||
|
|
||||||
emoji_cq = CQCode.create_emoji_cq(emoji_path)
|
emoji_cq = CQCode.create_emoji_cq(emoji_path)
|
||||||
|
|
||||||
if random() < 0.5:
|
if random() < 0.5:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue