Another attempt at HTML formatting.

This commit is contained in:
Josh W 2024-07-12 23:33:31 -04:00
parent e94241211b
commit 7941dd5619

View file

@ -127,7 +127,7 @@ class ChanceModule(Module):
# Tom gets the dice. # Tom gets the dice.
await ctx.client.send_message( await ctx.client.send_message(
ctx.room, ctx.room,
f"<em>{choice(_DICE_LOCATIONS)}</em>", f"{choice(_DICE_LOCATIONS)}",
message_type="m.emote", message_type="m.emote",
content_type="html.raw", content_type="html.raw",
) )
@ -169,10 +169,10 @@ class ChanceModule(Module):
await ctx.client.send_message( await ctx.client.send_message(
ctx.room, ctx.room,
( (
f"<em>rolls <strong>{dice_parts[0]}d{dice_parts[1]}</strong> " f"rolls <strong>{dice_parts[0]}d{dice_parts[1]}</strong> "
f"with a count of <strong>{total}</strong>. He then " f"with a count of <strong>{total}</strong>. He then "
f"<strong>{action} {modifier}</strong> for a final count " f"<strong>{action} {modifier}</strong> for a final count "
f"of <strong>{new_total}</strong>.</em>" f"of <strong>{new_total}</strong>."
), ),
reply_to=ctx.message, reply_to=ctx.message,
message_type="m.emote", message_type="m.emote",
@ -183,8 +183,8 @@ class ChanceModule(Module):
await ctx.client.send_message( await ctx.client.send_message(
ctx.room, ctx.room,
( (
f"<em>rolls <strong>{dice_parts[0]}d{dice_parts[1]}</strong> " f"rolls <strong>{dice_parts[0]}d{dice_parts[1]}</strong> "
f"and the final count is <strong>{total}</strong>.</em>" f"and the final count is <strong>{total}</strong>."
), ),
reply_to=ctx.message, reply_to=ctx.message,
message_type="m.emote", message_type="m.emote",