Skip to content

Commit 2244e20

Browse files
committed
final cleanup for 1.08 release
1 parent 6d52f0d commit 2244e20

3 files changed

Lines changed: 1 addition & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ Send a basic markdown message to a channel
8080

8181
# TODO
8282
- [x] Configure to accept piped data and send to Slack Snippet
83-
- [ ] Configure to allow file uploads
83+
- [x] Configure to allow file uploads
8484
- [ ] Configure to send DM's as a real bot using Token, instead of showing up via default webhook "Slackbot" DM
8585

slackcli.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ import (
1818
Compiles to single binary that can be used to dump info to slack quickly and easily via webhooks
1919
*/
2020

21-
// ************ FINISH FILE UPLOLAD MULTIPART DATA SECTION
22-
// FIGURE OUT HOW TO PASS emoji/name/channel to PostSNippet ( NOT SUPPORTED by Slack that I can see in API Docs )
23-
// Finish file posting multipart data stuff
24-
2521
func main() {
2622

2723
var myChannel string

slackmod/slack.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ func PostSnippet(token string, fileType string, fileContent string, channel stri
143143
if err != nil {
144144
return err
145145
}
146-
//fmt.Println(resp.Status)
147146

148147
defer resp.Body.Close()
149148

@@ -152,8 +151,6 @@ func PostSnippet(token string, fileType string, fileContent string, channel stri
152151
return err
153152
}
154153

155-
//fmt.Println(string(body))
156-
157154
return nil
158155
}
159156

0 commit comments

Comments
 (0)