From 0bf8672a88a6ccc1752f39f1b7c8e9fb3ba18221 Mon Sep 17 00:00:00 2001 From: Aine Date: Mon, 2 Oct 2023 21:24:48 +0300 Subject: [PATCH] option set/get visual changes --- bot/command_owner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/command_owner.go b/bot/command_owner.go index ffdffa4..1120931 100644 --- a/bot/command_owner.go +++ b/bot/command_owner.go @@ -81,7 +81,7 @@ func (b *Bot) getOption(ctx context.Context, name string) { value = utils.EmailsList(value, cfg.Domain()) } - msg := fmt.Sprintf("`%s` of this room is `%s`\n"+ + msg := fmt.Sprintf("`%s` of this room is:\n```\n%s\n```\n"+ "To set it to a new value, send a `%s %s VALUE` command.", name, value, b.prefix, name) if name == config.RoomPassword { @@ -187,7 +187,7 @@ func (b *Bot) setOption(ctx context.Context, name, value string) { return } - msg := fmt.Sprintf("`%s` of this room set to `%s`", name, value) + msg := fmt.Sprintf("`%s` of this room set to:\n```\n%s\n```", name, value) b.lp.SendNotice(evt.RoomID, msg, linkpearl.RelatesTo(evt.ID, cfg.NoThreads())) }