From f3ffe85653ae84c3beaaeeb2d1da65d719992d8a Mon Sep 17 00:00:00 2001 From: Tim Kinnane Date: Fri, 17 Aug 2018 20:58:43 +1000 Subject: [PATCH] fix(shell): Use attachment fallback as message --- src/adapters/shell.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/adapters/shell.ts b/src/adapters/shell.ts index f5d5b12..2d9f0da 100644 --- a/src/adapters/shell.ts +++ b/src/adapters/shell.ts @@ -124,6 +124,9 @@ export class Shell extends bBot.MessageAdapter { for (let text of (envelope.strings || [])) { this.messages.push([this.bot.settings.name, text]) } + for (let attachment of (envelope.payload.attachments || [])) { + this.messages.push([this.bot.settings.name, attachment.fallback]) + } } /** Close inquirer UI and exit process when shutdown complete */