forked from keinBot/cuffeo
- slack: wrap multiline in codeblock
- version bump to 1.0.4
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user