diff --git a/package.json b/package.json index 2cff1e3..cb84019 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cuffeo", - "version": "1.0.3", + "version": "1.0.4", "description": "A multi-protocol chatbot library with nearly zero dependencies.", "main": "src/index.mjs", "scripts": {}, diff --git a/src/clients/slack.mjs b/src/clients/slack.mjs index 01ee9ae..42b8cbb 100644 --- a/src/clients/slack.mjs +++ b/src/clients/slack.mjs @@ -128,6 +128,8 @@ export default class slack extends EventEmitter { } async send(channel, text) { + text = Array.isArray(text) ? text.join("\n") : text; + text = text.includes("\n") ? "```" + text + "```" : text; await this.write({ type: "message", channel: channel,