Skip to content

Commit

Permalink
fix(shell): Use attachment fallback as message
Browse files Browse the repository at this point in the history
  • Loading branch information
timkinnane committed Aug 17, 2018
1 parent 8f3fde0 commit f3ffe85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/adapters/shell.ts
Expand Up @@ -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 */
Expand Down

0 comments on commit f3ffe85

Please sign in to comment.