From e59ee9ead98465cb9b52109739e7834504bddb79 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Thu, 6 Apr 2023 18:47:37 -0500 Subject: [PATCH] Link to bot commands when suggesting buy more credit --- lib/bill_plan_command.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/bill_plan_command.rb b/lib/bill_plan_command.rb index 2e74d4be9803a80257ce78dd263e7797662a2518..c4b41390bdc51a0478524c2b7d0a7741a9fc6c16 100644 --- a/lib/bill_plan_command.rb +++ b/lib/bill_plan_command.rb @@ -67,9 +67,11 @@ protected def notify_failure m = Blather::Stanza::Message.new m.from = CONFIG[:notify_from] - m.body = + m.xhtml = "Failed to renew account for #{@customer.registered?.phone}. " \ - "To keep your number, please buy more credit soon." + "To keep your number, please " \ + "buy more credit soon." + m.body = m.xhtml_node.text @customer.stanza_to(m) end