-
Notifications
You must be signed in to change notification settings - Fork 1
/
content.js
21 lines (20 loc) · 887 Bytes
/
content.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* eslint no-template-curly-in-string: 0 */
const { createContentTemplate } = require("@numical/ubibot-util/");
module.exports = Object.freeze({
hello: "Hello. I'm BankBot. How can I help?",
help: "Things I can do - check your [balance]",
balanceTemplate: createContentTemplate("Your current balance is £${balance}"),
accountDetailsTemplate: createContentTemplate(
"The sort code is ${sortcode} and the account number is ${accountNumber}."
),
payees: {
title: "Available payees are:",
lineTemplate: createContentTemplate("${index}: ${name} : ${sortcode} : ${accountNumber}")
},
transactions: {
title: "Your most recent transactions are:",
lineTemplate: createContentTemplate("${date} : ${type} : ${merchant} : ${signedAmount}", {
signedAmount: ({ amount, category }) => (category === "Credit" ? `£${amount}` : `-£${amount}`)
})
}
});