@@ -9,28 +9,6 @@ export interface SlackMessage {
99 channel ?: string
1010}
1111
12- // Example response:
13- // {
14- // "ok": true,
15- // "channel": "C123ABC456",
16- // "ts": "1503435956.000247",
17- // "message": {
18- // "text": "Here's a message for you",
19- // "username": "ecto1",
20- // "bot_id": "B123ABC456",
21- // "attachments": [
22- // {
23- // "text": "This is an attachment",
24- // "id": 1,
25- // "fallback": "This is an attachment's fallback"
26- // }
27- // ],
28- // "type": "message",
29- // "subtype": "bot_message",
30- // "ts": "1503435956.000247"
31- // }
32- // }
33-
3412export interface SlackResponse {
3513 ok : boolean
3614 channel ?: string
@@ -66,16 +44,7 @@ export class SlackNotifier {
6644 const result : SlackResponse = await response . json ( )
6745
6846 if ( ! result . ok ) {
69- if ( result . error === "not_in_channel" ) {
70- this . logger . error (
71- `Slack bot is not a member of channel "${ messageWithChannel . channel } ". ` +
72- `Please add the bot to the channel or ensure the channel exists. ` +
73- `Error: ${ result . error } ` ,
74- )
75- } else {
76- this . logger . error ( `Slack API error: ${ result . error } ` )
77- }
78- return null
47+ this . logger . error ( `Slack API error: ${ result . error } ` )
7948 }
8049
8150 return result . ts ?? null
@@ -99,15 +68,11 @@ export class SlackNotifier {
9968 return await this . postMessage ( {
10069 text : `🚀 Task Started` ,
10170 blocks : [
102- {
103- type : "header" ,
104- text : { type : "plain_text" , text : "🚀 Roo Code Task Started" } ,
105- } ,
10671 {
10772 type : "section" ,
10873 text : {
10974 type : "mrkdwn" ,
110- text : `Creating a pull request for <https://github.com/RooCodeInc/Roo-Code/issues/${ jobPayload . issue } |GitHub Issue #${ jobPayload . issue } >` ,
75+ text : `🚀 *Task Started*\nCreating a pull request for <https://github.com/RooCodeInc/Roo-Code/issues/${ jobPayload . issue } |GitHub Issue #${ jobPayload . issue } >` ,
11176 } ,
11277 } ,
11378 {
0 commit comments