Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
hearCommand('help', async (context) => {
await context.send({
message: `
My commands list
/help - The help
/time - The current date
/cat - Cat photo
/purr - Cat purring
`,
keyboard: Keyboard.builder()
.textButton({
label: 'The help',
payload: {
command: 'help'
}
})
.row()
.textButton({
label: 'The current date',
payload: {
command: 'time'
}
})
.row()
.textButton({
label: 'Cat photo',