tweak: responses for focuswith and hyperfocused

This commit is contained in:
2026-09-15 19:48:37 +10:00
parent 9c834c1c4e
commit d706e35fdf
+8 -10
View File
@@ -175,7 +175,7 @@ class FocusComponent(cmds.Component):
if notify:
self._last_deleted[profile.profileid] = now
response_text = random.choice(responses)
response_text = payload.chatter.mention + ' ' + response_text
response_text = payload.chatter.mention + " " + response_text
try:
if deleted:
await payload.broadcaster.send_message(
@@ -273,13 +273,13 @@ class FocusComponent(cmds.Component):
if hyper := (await self.get_hyperfocus(profile.profileid)):
durstr = strfdelta(hyper.ends_at - utc_now())
await ctx.reply(
f"{user.name} is in HYPERFOCUS for another {durstr}! "
"They can only write emojis and commands in this time. Good luck!"
f"🐾 {user.name} remains in HYPERFOCUS for another {durstr}!"
" Nico allows only commands and emotes. No exceptions. kawaii16Stab"
)
elif own:
await ctx.reply(
"You are not hyperfocused!"
" Enter HYPERFOCUS mode for e.g. 10 minutes with '!hyperfocus 10'"
"🧐 Nico looked for a focus session and found nothing."
" Suspicious. Enter HYPERFOCUS mode for e.g. 10 minutes with '!hyperfocus 10'"
)
else:
await ctx.reply(f"{user.name} is not hyperfocused!")
@@ -314,8 +314,8 @@ class FocusComponent(cmds.Component):
durstr = strfdelta(end_at - now)
await ctx.reply(
f"{ctx.chatter.name} follows {user.name} into HYPERFOCUS for the next {durstr}! "
"Best of luck! ☘️🍀☘️ "
f"🐱 Nico locks {ctx.chatter.name} into HYPERFOCUS with {user.name} for {durstr}! "
"Procrastination is now a group offense. kawaii16Shoot"
)
else:
await ctx.reply(f"{user.name} is not hyperfocused!")
@@ -329,9 +329,7 @@ class FocusComponent(cmds.Component):
@cmds.command(name="focuslist")
async def focuslist_cmd(self, ctx):
comm = await self.bot.profiles.fetch_community(ctx.broadcaster, touch=True)
link = (
f"https://nicofocus.thewisewolf.dev/widget/?community={comm.communityid}"
)
link = f"https://nicofocus.thewisewolf.dev/widget/?community={comm.communityid}"
await ctx.reply(
f"Browser source link for your channel's hyperfocus: {link} (For troubleshooting: your community id is {comm.communityid})"
)