summaryrefslogtreecommitdiffstats
path: root/vendor/github.com
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-11-02 17:09:34 +0100
committerWim <wim@42.be>2017-11-02 17:09:34 +0100
commitb2a6777995c55233a47212743c781a27dde8dce6 (patch)
treebe4a9ef00448f82c71ae47d42835347160b70900 /vendor/github.com
parentb461fc5e404c6e0df7289477171cad629cddb3e6 (diff)
downloadmatterbridge-msglm-b2a6777995c55233a47212743c781a27dde8dce6.tar.gz
matterbridge-msglm-b2a6777995c55233a47212743c781a27dde8dce6.tar.bz2
matterbridge-msglm-b2a6777995c55233a47212743c781a27dde8dce6.zip
Use matterbridge vendored slack
Diffstat (limited to 'vendor/github.com')
-rw-r--r--vendor/github.com/matterbridge/slack/LICENSE (renamed from vendor/github.com/nlopes/slack/LICENSE)0
-rw-r--r--vendor/github.com/matterbridge/slack/admin.go (renamed from vendor/github.com/nlopes/slack/admin.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/attachments.go (renamed from vendor/github.com/nlopes/slack/attachments.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/backoff.go (renamed from vendor/github.com/nlopes/slack/backoff.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/bots.go (renamed from vendor/github.com/nlopes/slack/bots.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/channels.go (renamed from vendor/github.com/nlopes/slack/channels.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/chat.go (renamed from vendor/github.com/nlopes/slack/chat.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/comment.go (renamed from vendor/github.com/nlopes/slack/comment.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/conversation.go (renamed from vendor/github.com/nlopes/slack/conversation.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/dnd.go (renamed from vendor/github.com/nlopes/slack/dnd.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/emoji.go (renamed from vendor/github.com/nlopes/slack/emoji.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/files.go (renamed from vendor/github.com/nlopes/slack/files.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/groups.go (renamed from vendor/github.com/nlopes/slack/groups.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/history.go (renamed from vendor/github.com/nlopes/slack/history.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/im.go (renamed from vendor/github.com/nlopes/slack/im.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/info.go (renamed from vendor/github.com/nlopes/slack/info.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/item.go (renamed from vendor/github.com/nlopes/slack/item.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/messageID.go (renamed from vendor/github.com/nlopes/slack/messageID.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/messages.go (renamed from vendor/github.com/nlopes/slack/messages.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/misc.go (renamed from vendor/github.com/nlopes/slack/misc.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/oauth.go (renamed from vendor/github.com/nlopes/slack/oauth.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/pagination.go (renamed from vendor/github.com/nlopes/slack/pagination.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/pins.go (renamed from vendor/github.com/nlopes/slack/pins.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/reactions.go (renamed from vendor/github.com/nlopes/slack/reactions.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/rtm.go (renamed from vendor/github.com/nlopes/slack/rtm.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/search.go (renamed from vendor/github.com/nlopes/slack/search.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/slack.go (renamed from vendor/github.com/nlopes/slack/slack.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/stars.go (renamed from vendor/github.com/nlopes/slack/stars.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/team.go (renamed from vendor/github.com/nlopes/slack/team.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/usergroups.go (renamed from vendor/github.com/nlopes/slack/usergroups.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/users.go (renamed from vendor/github.com/nlopes/slack/users.go)38
-rw-r--r--vendor/github.com/matterbridge/slack/websocket.go (renamed from vendor/github.com/nlopes/slack/websocket.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_channels.go (renamed from vendor/github.com/nlopes/slack/websocket_channels.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_dm.go (renamed from vendor/github.com/nlopes/slack/websocket_dm.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_dnd.go (renamed from vendor/github.com/nlopes/slack/websocket_dnd.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_files.go (renamed from vendor/github.com/nlopes/slack/websocket_files.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_groups.go (renamed from vendor/github.com/nlopes/slack/websocket_groups.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_internals.go (renamed from vendor/github.com/nlopes/slack/websocket_internals.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_managed_conn.go (renamed from vendor/github.com/nlopes/slack/websocket_managed_conn.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_misc.go (renamed from vendor/github.com/nlopes/slack/websocket_misc.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_pins.go (renamed from vendor/github.com/nlopes/slack/websocket_pins.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_proxy.go (renamed from vendor/github.com/nlopes/slack/websocket_proxy.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_reactions.go (renamed from vendor/github.com/nlopes/slack/websocket_reactions.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_stars.go (renamed from vendor/github.com/nlopes/slack/websocket_stars.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_teams.go (renamed from vendor/github.com/nlopes/slack/websocket_teams.go)0
-rw-r--r--vendor/github.com/matterbridge/slack/websocket_utils.go (renamed from vendor/github.com/nlopes/slack/websocket_utils.go)0
-rw-r--r--vendor/github.com/nlopes/slack/examples/channels/channels.go21
-rw-r--r--vendor/github.com/nlopes/slack/examples/files/files.go30
-rw-r--r--vendor/github.com/nlopes/slack/examples/groups/groups.go22
-rw-r--r--vendor/github.com/nlopes/slack/examples/messages/messages.go32
-rw-r--r--vendor/github.com/nlopes/slack/examples/pins/pins.go123
-rw-r--r--vendor/github.com/nlopes/slack/examples/reactions/reactions.go126
-rw-r--r--vendor/github.com/nlopes/slack/examples/stars/stars.go46
-rw-r--r--vendor/github.com/nlopes/slack/examples/team/team.go25
-rw-r--r--vendor/github.com/nlopes/slack/examples/users/users.go17
-rw-r--r--vendor/github.com/nlopes/slack/examples/websocket/websocket.go54
56 files changed, 20 insertions, 514 deletions
diff --git a/vendor/github.com/nlopes/slack/LICENSE b/vendor/github.com/matterbridge/slack/LICENSE
index 5145171f..5145171f 100644
--- a/vendor/github.com/nlopes/slack/LICENSE
+++ b/vendor/github.com/matterbridge/slack/LICENSE
diff --git a/vendor/github.com/nlopes/slack/admin.go b/vendor/github.com/matterbridge/slack/admin.go
index 478c4f40..478c4f40 100644
--- a/vendor/github.com/nlopes/slack/admin.go
+++ b/vendor/github.com/matterbridge/slack/admin.go
diff --git a/vendor/github.com/nlopes/slack/attachments.go b/vendor/github.com/matterbridge/slack/attachments.go
index c5a66d96..c5a66d96 100644
--- a/vendor/github.com/nlopes/slack/attachments.go
+++ b/vendor/github.com/matterbridge/slack/attachments.go
diff --git a/vendor/github.com/nlopes/slack/backoff.go b/vendor/github.com/matterbridge/slack/backoff.go
index e555a1ad..e555a1ad 100644
--- a/vendor/github.com/nlopes/slack/backoff.go
+++ b/vendor/github.com/matterbridge/slack/backoff.go
diff --git a/vendor/github.com/nlopes/slack/bots.go b/vendor/github.com/matterbridge/slack/bots.go
index 13a78cb1..13a78cb1 100644
--- a/vendor/github.com/nlopes/slack/bots.go
+++ b/vendor/github.com/matterbridge/slack/bots.go
diff --git a/vendor/github.com/nlopes/slack/channels.go b/vendor/github.com/matterbridge/slack/channels.go
index 4a67b2fb..4a67b2fb 100644
--- a/vendor/github.com/nlopes/slack/channels.go
+++ b/vendor/github.com/matterbridge/slack/channels.go
diff --git a/vendor/github.com/nlopes/slack/chat.go b/vendor/github.com/matterbridge/slack/chat.go
index 9a2c4453..9a2c4453 100644
--- a/vendor/github.com/nlopes/slack/chat.go
+++ b/vendor/github.com/matterbridge/slack/chat.go
diff --git a/vendor/github.com/nlopes/slack/comment.go b/vendor/github.com/matterbridge/slack/comment.go
index 7d1c0d4e..7d1c0d4e 100644
--- a/vendor/github.com/nlopes/slack/comment.go
+++ b/vendor/github.com/matterbridge/slack/comment.go
diff --git a/vendor/github.com/nlopes/slack/conversation.go b/vendor/github.com/matterbridge/slack/conversation.go
index 83a1d4ee..83a1d4ee 100644
--- a/vendor/github.com/nlopes/slack/conversation.go
+++ b/vendor/github.com/matterbridge/slack/conversation.go
diff --git a/vendor/github.com/nlopes/slack/dnd.go b/vendor/github.com/matterbridge/slack/dnd.go
index 4f1b3228..4f1b3228 100644
--- a/vendor/github.com/nlopes/slack/dnd.go
+++ b/vendor/github.com/matterbridge/slack/dnd.go
diff --git a/vendor/github.com/nlopes/slack/emoji.go b/vendor/github.com/matterbridge/slack/emoji.go
index 5da9da41..5da9da41 100644
--- a/vendor/github.com/nlopes/slack/emoji.go
+++ b/vendor/github.com/matterbridge/slack/emoji.go
diff --git a/vendor/github.com/nlopes/slack/files.go b/vendor/github.com/matterbridge/slack/files.go
index fc4b7e23..fc4b7e23 100644
--- a/vendor/github.com/nlopes/slack/files.go
+++ b/vendor/github.com/matterbridge/slack/files.go
diff --git a/vendor/github.com/nlopes/slack/groups.go b/vendor/github.com/matterbridge/slack/groups.go
index 444666dd..444666dd 100644
--- a/vendor/github.com/nlopes/slack/groups.go
+++ b/vendor/github.com/matterbridge/slack/groups.go
diff --git a/vendor/github.com/nlopes/slack/history.go b/vendor/github.com/matterbridge/slack/history.go
index 87b2e1ed..87b2e1ed 100644
--- a/vendor/github.com/nlopes/slack/history.go
+++ b/vendor/github.com/matterbridge/slack/history.go
diff --git a/vendor/github.com/nlopes/slack/im.go b/vendor/github.com/matterbridge/slack/im.go
index 0cbc8d34..0cbc8d34 100644
--- a/vendor/github.com/nlopes/slack/im.go
+++ b/vendor/github.com/matterbridge/slack/im.go
diff --git a/vendor/github.com/nlopes/slack/info.go b/vendor/github.com/matterbridge/slack/info.go
index 49db5327..49db5327 100644
--- a/vendor/github.com/nlopes/slack/info.go
+++ b/vendor/github.com/matterbridge/slack/info.go
diff --git a/vendor/github.com/nlopes/slack/item.go b/vendor/github.com/matterbridge/slack/item.go
index 89af4eb1..89af4eb1 100644
--- a/vendor/github.com/nlopes/slack/item.go
+++ b/vendor/github.com/matterbridge/slack/item.go
diff --git a/vendor/github.com/nlopes/slack/messageID.go b/vendor/github.com/matterbridge/slack/messageID.go
index a17472b4..a17472b4 100644
--- a/vendor/github.com/nlopes/slack/messageID.go
+++ b/vendor/github.com/matterbridge/slack/messageID.go
diff --git a/vendor/github.com/nlopes/slack/messages.go b/vendor/github.com/matterbridge/slack/messages.go
index 39f0d6b1..39f0d6b1 100644
--- a/vendor/github.com/nlopes/slack/messages.go
+++ b/vendor/github.com/matterbridge/slack/messages.go
diff --git a/vendor/github.com/nlopes/slack/misc.go b/vendor/github.com/matterbridge/slack/misc.go
index 3a9ed2d6..3a9ed2d6 100644
--- a/vendor/github.com/nlopes/slack/misc.go
+++ b/vendor/github.com/matterbridge/slack/misc.go
diff --git a/vendor/github.com/nlopes/slack/oauth.go b/vendor/github.com/matterbridge/slack/oauth.go
index db10aa1b..db10aa1b 100644
--- a/vendor/github.com/nlopes/slack/oauth.go
+++ b/vendor/github.com/matterbridge/slack/oauth.go
diff --git a/vendor/github.com/nlopes/slack/pagination.go b/vendor/github.com/matterbridge/slack/pagination.go
index 87dd136a..87dd136a 100644
--- a/vendor/github.com/nlopes/slack/pagination.go
+++ b/vendor/github.com/matterbridge/slack/pagination.go
diff --git a/vendor/github.com/nlopes/slack/pins.go b/vendor/github.com/matterbridge/slack/pins.go
index a20f8f73..a20f8f73 100644
--- a/vendor/github.com/nlopes/slack/pins.go
+++ b/vendor/github.com/matterbridge/slack/pins.go
diff --git a/vendor/github.com/nlopes/slack/reactions.go b/vendor/github.com/matterbridge/slack/reactions.go
index 9da59241..9da59241 100644
--- a/vendor/github.com/nlopes/slack/reactions.go
+++ b/vendor/github.com/matterbridge/slack/reactions.go
diff --git a/vendor/github.com/nlopes/slack/rtm.go b/vendor/github.com/matterbridge/slack/rtm.go
index fd5d2002..fd5d2002 100644
--- a/vendor/github.com/nlopes/slack/rtm.go
+++ b/vendor/github.com/matterbridge/slack/rtm.go
diff --git a/vendor/github.com/nlopes/slack/search.go b/vendor/github.com/matterbridge/slack/search.go
index 0e8d65e2..0e8d65e2 100644
--- a/vendor/github.com/nlopes/slack/search.go
+++ b/vendor/github.com/matterbridge/slack/search.go
diff --git a/vendor/github.com/nlopes/slack/slack.go b/vendor/github.com/matterbridge/slack/slack.go
index a13bed31..a13bed31 100644
--- a/vendor/github.com/nlopes/slack/slack.go
+++ b/vendor/github.com/matterbridge/slack/slack.go
diff --git a/vendor/github.com/nlopes/slack/stars.go b/vendor/github.com/matterbridge/slack/stars.go
index cf4a4a11..cf4a4a11 100644
--- a/vendor/github.com/nlopes/slack/stars.go
+++ b/vendor/github.com/matterbridge/slack/stars.go
diff --git a/vendor/github.com/nlopes/slack/team.go b/vendor/github.com/matterbridge/slack/team.go
index e70ac57e..e70ac57e 100644
--- a/vendor/github.com/nlopes/slack/team.go
+++ b/vendor/github.com/matterbridge/slack/team.go
diff --git a/vendor/github.com/nlopes/slack/usergroups.go b/vendor/github.com/matterbridge/slack/usergroups.go
index de9f9864..de9f9864 100644
--- a/vendor/github.com/nlopes/slack/usergroups.go
+++ b/vendor/github.com/matterbridge/slack/usergroups.go
diff --git a/vendor/github.com/nlopes/slack/users.go b/vendor/github.com/matterbridge/slack/users.go
index 0aa95570..82798c93 100644
--- a/vendor/github.com/nlopes/slack/users.go
+++ b/vendor/github.com/matterbridge/slack/users.go
@@ -15,24 +15,26 @@ const (
// UserProfile contains all the information details of a given user
type UserProfile struct {
- FirstName string `json:"first_name"`
- LastName string `json:"last_name"`
- RealName string `json:"real_name"`
- RealNameNormalized string `json:"real_name_normalized"`
- Email string `json:"email"`
- Skype string `json:"skype"`
- Phone string `json:"phone"`
- Image24 string `json:"image_24"`
- Image32 string `json:"image_32"`
- Image48 string `json:"image_48"`
- Image72 string `json:"image_72"`
- Image192 string `json:"image_192"`
- ImageOriginal string `json:"image_original"`
- Title string `json:"title"`
- BotID string `json:"bot_id,omitempty"`
- ApiAppID string `json:"api_app_id,omitempty"`
- StatusText string `json:"status_text,omitempty"`
- StatusEmoji string `json:"status_emoji,omitempty"`
+ FirstName string `json:"first_name"`
+ LastName string `json:"last_name"`
+ RealName string `json:"real_name"`
+ RealNameNormalized string `json:"real_name_normalized"`
+ DisplayName string `json:"display_name"`
+ DisplayNameNormalized string `json:"display_name_normalized"`
+ Email string `json:"email"`
+ Skype string `json:"skype"`
+ Phone string `json:"phone"`
+ Image24 string `json:"image_24"`
+ Image32 string `json:"image_32"`
+ Image48 string `json:"image_48"`
+ Image72 string `json:"image_72"`
+ Image192 string `json:"image_192"`
+ ImageOriginal string `json:"image_original"`
+ Title string `json:"title"`
+ BotID string `json:"bot_id,omitempty"`
+ ApiAppID string `json:"api_app_id,omitempty"`
+ StatusText string `json:"status_text,omitempty"`
+ StatusEmoji string `json:"status_emoji,omitempty"`
}
// User contains all the information of a user
diff --git a/vendor/github.com/nlopes/slack/websocket.go b/vendor/github.com/matterbridge/slack/websocket.go
index f3c9cbd8..f3c9cbd8 100644
--- a/vendor/github.com/nlopes/slack/websocket.go
+++ b/vendor/github.com/matterbridge/slack/websocket.go
diff --git a/vendor/github.com/nlopes/slack/websocket_channels.go b/vendor/github.com/matterbridge/slack/websocket_channels.go
index 7dd3319b..7dd3319b 100644
--- a/vendor/github.com/nlopes/slack/websocket_channels.go
+++ b/vendor/github.com/matterbridge/slack/websocket_channels.go
diff --git a/vendor/github.com/nlopes/slack/websocket_dm.go b/vendor/github.com/matterbridge/slack/websocket_dm.go
index 98bf6f88..98bf6f88 100644
--- a/vendor/github.com/nlopes/slack/websocket_dm.go
+++ b/vendor/github.com/matterbridge/slack/websocket_dm.go
diff --git a/vendor/github.com/nlopes/slack/websocket_dnd.go b/vendor/github.com/matterbridge/slack/websocket_dnd.go
index 62ddea3a..62ddea3a 100644
--- a/vendor/github.com/nlopes/slack/websocket_dnd.go
+++ b/vendor/github.com/matterbridge/slack/websocket_dnd.go
diff --git a/vendor/github.com/nlopes/slack/websocket_files.go b/vendor/github.com/matterbridge/slack/websocket_files.go
index 8c5bd4f8..8c5bd4f8 100644
--- a/vendor/github.com/nlopes/slack/websocket_files.go
+++ b/vendor/github.com/matterbridge/slack/websocket_files.go
diff --git a/vendor/github.com/nlopes/slack/websocket_groups.go b/vendor/github.com/matterbridge/slack/websocket_groups.go
index eb88985c..eb88985c 100644
--- a/vendor/github.com/nlopes/slack/websocket_groups.go
+++ b/vendor/github.com/matterbridge/slack/websocket_groups.go
diff --git a/vendor/github.com/nlopes/slack/websocket_internals.go b/vendor/github.com/matterbridge/slack/websocket_internals.go
index 2a8abe6e..2a8abe6e 100644
--- a/vendor/github.com/nlopes/slack/websocket_internals.go
+++ b/vendor/github.com/matterbridge/slack/websocket_internals.go
diff --git a/vendor/github.com/nlopes/slack/websocket_managed_conn.go b/vendor/github.com/matterbridge/slack/websocket_managed_conn.go
index 9c48852a..9c48852a 100644
--- a/vendor/github.com/nlopes/slack/websocket_managed_conn.go
+++ b/vendor/github.com/matterbridge/slack/websocket_managed_conn.go
diff --git a/vendor/github.com/nlopes/slack/websocket_misc.go b/vendor/github.com/matterbridge/slack/websocket_misc.go
index ad283ea1..ad283ea1 100644
--- a/vendor/github.com/nlopes/slack/websocket_misc.go
+++ b/vendor/github.com/matterbridge/slack/websocket_misc.go
diff --git a/vendor/github.com/nlopes/slack/websocket_pins.go b/vendor/github.com/matterbridge/slack/websocket_pins.go
index 95445e28..95445e28 100644
--- a/vendor/github.com/nlopes/slack/websocket_pins.go
+++ b/vendor/github.com/matterbridge/slack/websocket_pins.go
diff --git a/vendor/github.com/nlopes/slack/websocket_proxy.go b/vendor/github.com/matterbridge/slack/websocket_proxy.go
index 440015d6..440015d6 100644
--- a/vendor/github.com/nlopes/slack/websocket_proxy.go
+++ b/vendor/github.com/matterbridge/slack/websocket_proxy.go
diff --git a/vendor/github.com/nlopes/slack/websocket_reactions.go b/vendor/github.com/matterbridge/slack/websocket_reactions.go
index e4973878..e4973878 100644
--- a/vendor/github.com/nlopes/slack/websocket_reactions.go
+++ b/vendor/github.com/matterbridge/slack/websocket_reactions.go
diff --git a/vendor/github.com/nlopes/slack/websocket_stars.go b/vendor/github.com/matterbridge/slack/websocket_stars.go
index e0f2dda3..e0f2dda3 100644
--- a/vendor/github.com/nlopes/slack/websocket_stars.go
+++ b/vendor/github.com/matterbridge/slack/websocket_stars.go
diff --git a/vendor/github.com/nlopes/slack/websocket_teams.go b/vendor/github.com/matterbridge/slack/websocket_teams.go
index 3898c833..3898c833 100644
--- a/vendor/github.com/nlopes/slack/websocket_teams.go
+++ b/vendor/github.com/matterbridge/slack/websocket_teams.go
diff --git a/vendor/github.com/nlopes/slack/websocket_utils.go b/vendor/github.com/matterbridge/slack/websocket_utils.go
index b3d0ec89..b3d0ec89 100644
--- a/vendor/github.com/nlopes/slack/websocket_utils.go
+++ b/vendor/github.com/matterbridge/slack/websocket_utils.go
diff --git a/vendor/github.com/nlopes/slack/examples/channels/channels.go b/vendor/github.com/nlopes/slack/examples/channels/channels.go
deleted file mode 100644
index 37d5f741..00000000
--- a/vendor/github.com/nlopes/slack/examples/channels/channels.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package main
-
-import (
- "fmt"
-
- "github.com/nlopes/slack"
-)
-
-func main() {
- api := slack.New("YOUR_TOKEN_HERE")
- channels, err := api.GetChannels(false)
- if err != nil {
- fmt.Printf("%s\n", err)
- return
- }
- for _, channel := range channels {
- fmt.Println(channel.Name)
- // channel is of type conversation & groupConversation
- // see all available methods in `conversation.go`
- }
-}
diff --git a/vendor/github.com/nlopes/slack/examples/files/files.go b/vendor/github.com/nlopes/slack/examples/files/files.go
deleted file mode 100644
index bb7b4e50..00000000
--- a/vendor/github.com/nlopes/slack/examples/files/files.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package main
-
-import (
- "fmt"
-
- "github.com/nlopes/slack"
-)
-
-func main() {
- api := slack.New("YOUR_TOKEN_HERE")
- params := slack.FileUploadParameters{
- Title: "Batman Example",
- //Filetype: "txt",
- File: "example.txt",
- //Content: "Nan Nan Nan Nan Nan Nan Nan Nan Batman",
- }
- file, err := api.UploadFile(params)
- if err != nil {
- fmt.Printf("%s\n", err)
- return
- }
- fmt.Printf("Name: %s, URL: %s\n", file.Name, file.URL)
-
- err = api.DeleteFile(file.ID)
- if err != nil {
- fmt.Printf("%s\n", err)
- return
- }
- fmt.Printf("File %s deleted successfully.\n", file.Name)
-}
diff --git a/vendor/github.com/nlopes/slack/examples/groups/groups.go b/vendor/github.com/nlopes/slack/examples/groups/groups.go
deleted file mode 100644
index 2af215d1..00000000
--- a/vendor/github.com/nlopes/slack/examples/groups/groups.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package main
-
-import (
- "fmt"
-
- "github.com/nlopes/slack"
-)
-
-func main() {
- api := slack.New("YOUR_TOKEN_HERE")
- // If you set debugging, it will log all requests to the console
- // Useful when encountering issues
- // api.SetDebug(true)
- groups, err := api.GetGroups(false)
- if err != nil {
- fmt.Printf("%s\n", err)
- return
- }
- for _, group := range groups {
- fmt.Printf("ID: %s, Name: %s\n", group.ID, group.Name)
- }
-}
diff --git a/vendor/github.com/nlopes/slack/examples/messages/messages.go b/vendor/github.com/nlopes/slack/examples/messages/messages.go
deleted file mode 100644
index b3ea87f3..00000000
--- a/vendor/github.com/nlopes/slack/examples/messages/messages.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package main
-
-import (
- "fmt"
-
- "github.com/nlopes/slack"
-)
-
-func main() {
- api := slack.New("YOUR_TOKEN_HERE")
- params := slack.PostMessageParameters{}
- attachment := slack.Attachment{
- Pretext: "some pretext",
- Text: "some text",
- // Uncomment the following part to send a field too
- /*
- Fields: []slack.AttachmentField{
- slack.AttachmentField{
- Title: "a",
- Value: "no",
- },
- },
- */
- }
- params.Attachments = []slack.Attachment{attachment}
- channelID, timestamp, err := api.PostMessage("CHANNEL_ID", "Some text", params)
- if err != nil {
- fmt.Printf("%s\n", err)
- return
- }
- fmt.Printf("Message successfully sent to channel %s at %s", channelID, timestamp)
-}
diff --git a/vendor/github.com/nlopes/slack/examples/pins/pins.go b/vendor/github.com/nlopes/slack/examples/pins/pins.go
deleted file mode 100644
index d225184c..00000000
--- a/vendor/github.com/nlopes/slack/examples/pins/pins.go
+++ /dev/null
@@ -1,123 +0,0 @@
-package main
-
-import (
- "flag"
- "fmt"
-
- "github.com/nlopes/slack"
-)
-
-/*
- WARNING: This example is destructive in the sense that it create a channel called testpinning
-*/
-func main() {
- var (
- apiToken string
- debug bool
- )
-
- flag.StringVar(&apiToken, "token", "YOUR_TOKEN_HERE", "Your Slack API Token")
- flag.BoolVar(&debug, "debug", false, "Show JSON output")
- flag.Parse()
-
- api := slack.New(apiToken)
- if debug {
- api.SetDebug(true)
- }
-
- var (
- postAsUserName string
- postAsUserID string
- postToChannelID string
- )
-
- // Find the user to post as.
- authTest, err := api.AuthTest()
- if err != nil {
- fmt.Printf("Error getting channels: %s\n", err)
- return
- }
-
- channelName := "testpinning"
-
- // Post as the authenticated user.
- postAsUserName = authTest.User
- postAsUserID = authTest.UserID
-
- // Create a temporary channel
- channel, err := api.CreateChannel(channelName)
-
- if err != nil {
- // If the channel exists, that means we just need to unarchive it
- if err.Error() == "name_taken" {
- err = nil
- channels, err := api.GetChannels(false)
- if err != nil {
- fmt.Println("Could not retrieve channels")
- return
- }
- for _, archivedChannel := range channels {
- if archivedChannel.Name == channelName {
- if archivedChannel.IsArchived {
- err = api.UnarchiveChannel(archivedChannel.ID)
- if err != nil {
- fmt.Printf("Could not unarchive %s: %s\n", archivedChannel.ID, err)
- return
- }
- }
- channel = &archivedChannel
- break
- }
- }
- }
- if err != nil {
- fmt.Printf("Error setting test channel for pinning: %s\n", err)
- return
- }
- }
- postToChannelID = channel.ID
-
- fmt.Printf("Posting as %s (%s) in channel %s\n", postAsUserName, postAsUserID, postToChannelID)
-
- // Post a message.
- postParams := slack.PostMessageParameters{}
- channelID, timestamp, err := api.PostMessage(postToChannelID, "Is this any good?", postParams)
- if err != nil {
- fmt.Printf("Error posting message: %s\n", err)
- return
- }
-
- // Grab a reference to the message.
- msgRef := slack.NewRefToMessage(channelID, timestamp)
-
- // Add message pin to channel
- if err := api.AddPin(channelID, msgRef); err != nil {
- fmt.Printf("Error adding pin: %s\n", err)
- return
- }
-
- // List all of the users pins.
- listPins, _, err := api.ListPins(channelID)
- if err != nil {
- fmt.Printf("Error listing pins: %s\n", err)
- return
- }
- fmt.Printf("\n")
- fmt.Printf("All pins by %s...\n", authTest.User)
- for _, item := range listPins {
- fmt.Printf(" > Item type: %s\n", item.Type)
- }
-
- // Remove the pin.
- err = api.RemovePin(channelID, msgRef)
- if err != nil {
- fmt.Printf("Error remove pin: %s\n", err)
- return
- }
-
- if err = api.ArchiveChannel(channelID); err != nil {
- fmt.Printf("Error archiving channel: %s\n", err)
- return
- }
-
-}
diff --git a/vendor/github.com/nlopes/slack/examples/reactions/reactions.go b/vendor/github.com/nlopes/slack/examples/reactions/reactions.go
deleted file mode 100644
index 753f0d25..00000000
--- a/vendor/github.com/nlopes/slack/examples/reactions/reactions.go
+++ /dev/null
@@ -1,126 +0,0 @@
-package main
-
-import (
- "flag"
- "fmt"
-
- "github.com/nlopes/slack"
-)
-
-func main() {
- var (
- apiToken string
- debug bool
- )
-
- flag.StringVar(&apiToken, "token", "YOUR_TOKEN_HERE", "Your Slack API Token")
- flag.BoolVar(&debug, "debug", false, "Show JSON output")
- flag.Parse()
-
- api := slack.New(apiToken)
- if debug {
- api.SetDebug(true)
- }
-
- var (
- postAsUserName string
- postAsUserID string
- postToUserName string
- postToUserID string
- postToChannelID string
- )
-
- // Find the user to post as.
- authTest, err := api.AuthTest()
- if err != nil {
- fmt.Printf("Error getting channels: %s\n", err)
- return
- }
-
- // Post as the authenticated user.
- postAsUserName = authTest.User
- postAsUserID = authTest.UserID
-
- // Posting to DM with self causes a conversation with slackbot.
- postToUserName = authTest.User
- postToUserID = authTest.UserID
-
- // Find the channel.
- _, _, chanID, err := api.OpenIMChannel(postToUserID)
- if err != nil {
- fmt.Printf("Error opening IM: %s\n", err)
- return
- }
- postToChannelID = chanID
-
- fmt.Printf("Posting as %s (%s) in DM with %s (%s), channel %s\n", postAsUserName, postAsUserID, postToUserName, postToUserID, postToChannelID)
-
- // Post a message.
- postParams := slack.PostMessageParameters{}
- channelID, timestamp, err := api.PostMessage(postToChannelID, "Is this any good?", postParams)
- if err != nil {
- fmt.Printf("Error posting message: %s\n", err)
- return
- }
-
- // Grab a reference to the message.
- msgRef := slack.NewRefToMessage(channelID, timestamp)
-
- // React with :+1:
- if err := api.AddReaction("+1", msgRef); err != nil {
- fmt.Printf("Error adding reaction: %s\n", err)
- return
- }
-
- // React with :-1:
- if err := api.AddReaction("cry", msgRef); err != nil {
- fmt.Printf("Error adding reaction: %s\n", err)
- return
- }
-
- // Get all reactions on the message.
- msgReactions, err := api.GetReactions(msgRef, slack.NewGetReactionsParameters())
- if err != nil {
- fmt.Printf("Error getting reactions: %s\n", err)
- return
- }
- fmt.Printf("\n")
- fmt.Printf("%d reactions to message...\n", len(msgReactions))
- for _, r := range msgReactions {
- fmt.Printf(" %d users say %s\n", r.Count, r.Name)
- }
-
- // List all of the users reactions.
- listReactions, _, err := api.ListReactions(slack.NewListReactionsParameters())
- if err != nil {
- fmt.Printf("Error listing reactions: %s\n", err)
- return
- }
- fmt.Printf("\n")
- fmt.Printf("All reactions by %s...\n", authTest.User)
- for _, item := range listReactions {
- fmt.Printf("%d on a %s...\n", len(item.Reactions), item.Type)
- for _, r := range item.Reactions {
- fmt.Printf(" %s (along with %d others)\n", r.Name, r.Count-1)
- }
- }
-
- // Remove the :cry: reaction.
- err = api.RemoveReaction("cry", msgRef)
- if err != nil {
- fmt.Printf("Error remove reaction: %s\n", err)
- return
- }
-
- // Get all reactions on the message.
- msgReactions, err = api.GetReactions(msgRef, slack.NewGetReactionsParameters())
- if err != nil {
- fmt.Printf("Error getting reactions: %s\n", err)
- return
- }
- fmt.Printf("\n")
- fmt.Printf("%d reactions to message after removing cry...\n", len(msgReactions))
- for _, r := range msgReactions {
- fmt.Printf(" %d users say %s\n", r.Count, r.Name)
- }
-}
diff --git a/vendor/github.com/nlopes/slack/examples/stars/stars.go b/vendor/github.com/nlopes/slack/examples/stars/stars.go
deleted file mode 100644
index d20c3dcf..00000000
--- a/vendor/github.com/nlopes/slack/examples/stars/stars.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package main
-
-import (
- "flag"
- "fmt"
-
- "github.com/nlopes/slack"
-)
-
-func main() {
- var (
- apiToken string
- debug bool
- )
-
- flag.StringVar(&apiToken, "token", "YOUR_TOKEN_HERE", "Your Slack API Token")
- flag.BoolVar(&debug, "debug", false, "Show JSON output")
- flag.Parse()
-
- api := slack.New(apiToken)
- if debug {
- api.SetDebug(true)
- }
-
- // Get all stars for the usr.
- params := slack.NewStarsParameters()
- starredItems, _, err := api.GetStarred(params)
- if err != nil {
- fmt.Printf("Error getting stars: %s\n", err)
- return
- }
- for _, s := range starredItems {
- var desc string
- switch s.Type {
- case slack.TYPE_MESSAGE:
- desc = s.Message.Text
- case slack.TYPE_FILE:
- desc = s.File.Name
- case slack.TYPE_FILE_COMMENT:
- desc = s.File.Name + " - " + s.Comment.Comment
- case slack.TYPE_CHANNEL, slack.TYPE_IM, slack.TYPE_GROUP:
- desc = s.Channel
- }
- fmt.Printf("Starred %s: %s\n", s.Type, desc)
- }
-}
diff --git a/vendor/github.com/nlopes/slack/examples/team/team.go b/vendor/github.com/nlopes/slack/examples/team/team.go
deleted file mode 100644
index 38223d86..00000000
--- a/vendor/github.com/nlopes/slack/examples/team/team.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package main
-
-import (
- "fmt"
-
- "github.com/nlopes/slack"
-)
-
-func main() {
- api := slack.New("YOUR_TOKEN_HERE")
- //Example for single user
- billingActive, err := api.GetBillableInfo("U023BECGF")
- if err != nil {
- fmt.Printf("%s\n", err)
- return
- }
- fmt.Printf("ID: U023BECGF, BillingActive: %v\n\n\n", billingActive["U023BECGF"])
-
- //Example for team
- billingActiveForTeam, err := api.GetBillableInfoForTeam()
- for id, value := range billingActiveForTeam {
- fmt.Printf("ID: %v, BillingActive: %v\n", id, value)
- }
-
-}
diff --git a/vendor/github.com/nlopes/slack/examples/users/users.go b/vendor/github.com/nlopes/slack/examples/users/users.go
deleted file mode 100644
index 9a6e1f6f..00000000
--- a/vendor/github.com/nlopes/slack/examples/users/users.go
+++ /dev/null
@@ -1,17 +0,0 @@
-package main
-
-import (
- "fmt"
-
- "github.com/nlopes/slack"
-)
-
-func main() {
- api := slack.New("YOUR_TOKEN_HERE")
- user, err := api.GetUserInfo("U023BECGF")
- if err != nil {
- fmt.Printf("%s\n", err)
- return
- }
- fmt.Printf("ID: %s, Fullname: %s, Email: %s\n", user.ID, user.Profile.RealName, user.Profile.Email)
-}
diff --git a/vendor/github.com/nlopes/slack/examples/websocket/websocket.go b/vendor/github.com/nlopes/slack/examples/websocket/websocket.go
deleted file mode 100644
index d02caadd..00000000
--- a/vendor/github.com/nlopes/slack/examples/websocket/websocket.go
+++ /dev/null
@@ -1,54 +0,0 @@
-package main
-
-import (
- "fmt"
- "log"
- "os"
-
- "github.com/nlopes/slack"
-)
-
-func main() {
- api := slack.New("YOUR TOKEN HERE")
- logger := log.New(os.Stdout, "slack-bot: ", log.Lshortfile|log.LstdFlags)
- slack.SetLogger(logger)
- api.SetDebug(true)
-
- rtm := api.NewRTM()
- go rtm.ManageConnection()
-
- for msg := range rtm.IncomingEvents {
- fmt.Print("Event Received: ")
- switch ev := msg.Data.(type) {
- case *slack.HelloEvent:
- // Ignore hello
-
- case *slack.ConnectedEvent:
- fmt.Println("Infos:", ev.Info)
- fmt.Println("Connection counter:", ev.ConnectionCount)
- // Replace #general with your Channel ID
- rtm.SendMessage(rtm.NewOutgoingMessage("Hello world", "#general"))
-
- case *slack.MessageEvent:
- fmt.Printf("Message: %v\n", ev)
-
- case *slack.PresenceChangeEvent:
- fmt.Printf("Presence Change: %v\n", ev)
-
- case *slack.LatencyReport:
- fmt.Printf("Current latency: %v\n", ev.Value)
-
- case *slack.RTMError:
- fmt.Printf("Error: %s\n", ev.Error())
-
- case *slack.InvalidAuthEvent:
- fmt.Printf("Invalid credentials")
- return
-
- default:
-
- // Ignore other events..
- // fmt.Printf("Unexpected: %v\n", msg.Data)
- }
- }
-}