fix(P2): 5 priority-2 bug fixes — emoji consolidation, DM safety, pause gap
#10 Redundant coin flip in join_conversation — removed the 50% random gate that doubled the V2 engine's own decision to act. #11 Message-triggered actions skip _autonomous_paused — _check_and_act and _check_and_react now bail out immediately when the autonomous system is paused (voice session), matching the scheduled-tick path. #12 Duplicate emoji dictionaries — removed MOOD_EMOJIS and EVIL_MOOD_EMOJIS from globals.py (had different emojis from moods.py). bipolar_mode.py and evil_mode.py now import the canonical dicts from utils/moods.py so all code sees the same emojis. #13 DM mood can spontaneously become 'asleep' — rotate_dm_mood() now filters 'asleep' out of the candidate list since DMs have no sleepy-to-asleep transition guard and no wakeup timer. #15 Engage-user fallback misreports action type — log level raised to WARNING with an explicit [engage_user->general] prefix so the cooldown-triggered fallback is visible in logs.
This commit is contained in:
@@ -404,8 +404,9 @@ async def update_webhook_avatars(client):
|
||||
|
||||
def get_miku_display_name() -> str:
|
||||
"""Get Regular Miku's display name with mood and emoji"""
|
||||
from utils.moods import MOOD_EMOJIS
|
||||
mood = globals.DM_MOOD
|
||||
emoji = globals.MOOD_EMOJIS.get(mood, "")
|
||||
emoji = MOOD_EMOJIS.get(mood, "")
|
||||
if emoji:
|
||||
return f"Hatsune Miku {emoji}"
|
||||
return "Hatsune Miku"
|
||||
@@ -413,8 +414,9 @@ def get_miku_display_name() -> str:
|
||||
|
||||
def get_evil_miku_display_name() -> str:
|
||||
"""Get Evil Miku's display name with mood and emoji"""
|
||||
from utils.moods import EVIL_MOOD_EMOJIS
|
||||
mood = globals.EVIL_DM_MOOD
|
||||
emoji = globals.EVIL_MOOD_EMOJIS.get(mood, "")
|
||||
emoji = EVIL_MOOD_EMOJIS.get(mood, "")
|
||||
if emoji:
|
||||
return f"Evil Miku {emoji}"
|
||||
return "Evil Miku"
|
||||
|
||||
Reference in New Issue
Block a user