commit b34b7468158de8845a81eac37728e3821c8e297e parent 60bb6f46eacf3e07ab337b6d07f56ab4f0c99dcd Author: Demonstrandum <moi@knutsen.co> Date: Thu, 19 Mar 2020 16:46:25 +0000 Rule formatting.... Diffstat:
M | lib/rule.ts | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/rule.ts b/lib/rule.ts @@ -7,10 +7,10 @@ export const rule = (rule_kind: string) => home_scope => { if (args.length === 0 || args[0] === 'ls') { // Make a pretty list. let str = `**${rule_kind.capitalize()} Rules:**\n`; - rules_array.each((rule, i) => { - str += `${i + 1}. Matches: ${rule.match}`; - if (rule.response) - str += `\n Responds with: ‘${rule.response}’`; + rules_array.each((entry, i) => { + str += `${i + 1}. Matches: \`${entry.match}\``; + if (entry.response) + str += `\n Responds with: ‘${entry.response}’`; str += '\n'; }); message.channel.send(str);