Skip to content

Commit

Permalink
wow
Browse files Browse the repository at this point in the history
  • Loading branch information
lfventura committed May 26, 2023
1 parent a94e214 commit b4a8ac4
Show file tree
Hide file tree
Showing 51 changed files with 84 additions and 82 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ See [CHANGELOG.md](https://github.com/slack-go/slack/blob/master/CHANGELOG.md) o

### *go get*

$ go get -u github.com/slack-go/slack
$ go get -u github.com/lfventura/slack-go

## Example

Expand All @@ -31,7 +31,7 @@ See [CHANGELOG.md](https://github.com/slack-go/slack/blob/master/CHANGELOG.md) o
import (
"fmt"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand All @@ -56,7 +56,7 @@ func main() {
import (
"fmt"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/url"
"strconv"

"github.com/slack-go/slack/slackutilsx"
"github.com/lfventura/slack-go/slackutilsx"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion examples/blocks/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

// The functions below mock the different templates slack has as examples on their website.
Expand Down
2 changes: 1 addition & 1 deletion examples/buttons/buttons.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"os"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/connparams/connparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"os"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/dialog/dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/url"
"strings"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

var api = slack.New("YOUR_TOKEN")
Expand Down
4 changes: 2 additions & 2 deletions examples/eventsapi/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http"
"os"

"github.com/slack-go/slack"
"github.com/slack-go/slack/slackevents"
"github.com/lfventura/slack-go"
"github.com/lfventura/slack-go/slackevents"
)

// You more than likely want your "Bot User OAuth Access Token" which starts with "xoxb-"
Expand Down
2 changes: 1 addition & 1 deletion examples/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/messages/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/modal/modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"io/ioutil"
"net/http"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func generateModalRequest() slack.ModalViewRequest {
Expand Down
2 changes: 1 addition & 1 deletion examples/modal_users/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

// An example how to open a modal with different kinds of input fields
Expand Down
2 changes: 1 addition & 1 deletion examples/pins/pins.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

// WARNING: This example is destructive in the sense that it create a channel called testpinning
Expand Down
2 changes: 1 addition & 1 deletion examples/reactions/reactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions examples/remotefiles/remotefiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand All @@ -17,7 +17,7 @@ func main() {
defer r.Close()
remotefile, err := api.AddRemoteFile(slack.RemoteFileParameters{
ExternalID: "slack-go",
ExternalURL: "https://github.com/slack-go/slack",
ExternalURL: "https://github.com/lfventura/slack-go",
Title: "slack-go",
Filetype: "go",
IndexableFileContents: "golang, slack",
Expand Down Expand Up @@ -48,7 +48,7 @@ func main() {

remotefile, err = api.UpdateRemoteFile(remotefile.ID, slack.RemoteFileParameters{
ExternalID: "slack-go",
ExternalURL: "https://github.com/slack-go/slack",
ExternalURL: "https://github.com/lfventura/slack-go",
Title: "slack-go",
Filetype: "go",
IndexableFileContents: "golang, slack, github",
Expand Down
2 changes: 1 addition & 1 deletion examples/slash/slash.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io/ioutil"
"net/http"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions examples/socketmode/socketmode.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"os"
"strings"

"github.com/slack-go/slack/socketmode"
"github.com/lfventura/slack-go/socketmode"

"github.com/slack-go/slack"
"github.com/slack-go/slack/slackevents"
"github.com/lfventura/slack-go"
"github.com/lfventura/slack-go/slackevents"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions examples/socketmode_handler/socketmode_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"os"
"strings"

"github.com/slack-go/slack/slackevents"
"github.com/slack-go/slack/socketmode"
"github.com/lfventura/slack-go/slackevents"
"github.com/lfventura/slack-go/socketmode"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/stars/stars.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/team/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/users/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/webhooks/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"time"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand All @@ -15,7 +15,7 @@ func main() {
Fallback: "You successfully posted by Incoming Webhook URL!",
AuthorName: "slack-go/slack",
AuthorSubname: "github.com",
AuthorLink: "https://github.com/slack-go/slack",
AuthorLink: "https://github.com/lfventura/slack-go",
AuthorIcon: "https://avatars2.githubusercontent.com/u/652790",
Text: "<!channel> All text in Slack uses the same system of escaping: chat messages, direct messages, file comments, etc. :smile:\nSee <https://api.slack.com/docs/message-formatting#linking_to_channels_and_users>",
Footer: "slack api",
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket_respond/respond.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/workflow_step/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ go 1.17
require (
github.com/gorilla/websocket v1.4.2 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/slack-go/slack v0.10.1 // indirect
github.com/lfventura/slack-go v0.12.2.2 // indirect
)
4 changes: 2 additions & 2 deletions examples/workflow_step/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"net/url"
"time"

"github.com/slack-go/slack"
"github.com/slack-go/slack/slackevents"
"github.com/lfventura/slack-go"
"github.com/lfventura/slack-go/slackevents"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion examples/workflow_step/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"os"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion examples/workflow_step/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"net/http"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func (v *SecretsVerifierMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request) {
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0U
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/slack-go/slack v0.12.2 h1:x3OppyMyGIbbiyFhsBmpf9pwkUzMhthJMRNmNlA4LaQ=
github.com/slack-go/slack v0.12.2/go.mod h1:hlGi5oXA+Gt+yWTPP0plCdRKmjsDxecdHxYQdlMQKOw=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
Expand Down
2 changes: 1 addition & 1 deletion misc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"testing"

"github.com/slack-go/slack/slackutilsx"
"github.com/lfventura/slack-go/slackutilsx"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion slackevents/action_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slackevents
import (
"encoding/json"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

type MessageActionResponse struct {
Expand Down
2 changes: 1 addition & 1 deletion slackevents/inner_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package slackevents

import (
"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

// EventsAPIInnerEvent the inner event of a EventsAPI event_callback Event.
Expand Down
2 changes: 1 addition & 1 deletion slackevents/parsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"reflect"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

// eventsMap checks both slack.EventsMapping and
Expand Down
2 changes: 1 addition & 1 deletion slackevents/parsers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/slack-go/slack"
"github.com/lfventura/slack-go"
)

func TestParserOuterCallBackEvent(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion slacktest/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slacktest
import (
"fmt"

slack "github.com/slack-go/slack"
slack "github.com/lfventura/slack-go"
)

const defaultBotName = "TestSlackBot"
Expand Down
2 changes: 1 addition & 1 deletion slacktest/errors.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package slacktest

import (
"github.com/slack-go/slack/internal/errorsx"
"github.com/lfventura/slack-go/internal/errorsx"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion slacktest/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

websocket "github.com/gorilla/websocket"

slack "github.com/slack-go/slack"
slack "github.com/lfventura/slack-go"
)

func (sts *Server) queueForWebsocket(s, hubname string) {
Expand Down
2 changes: 1 addition & 1 deletion slacktest/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

websocket "github.com/gorilla/websocket"

slack "github.com/slack-go/slack"
slack "github.com/lfventura/slack-go"
)

func contextHandler(server *Server, next http.HandlerFunc) http.Handler {
Expand Down
2 changes: 1 addition & 1 deletion slacktest/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/assert"

slack "github.com/slack-go/slack"
slack "github.com/lfventura/slack-go"
)

func TestAuthTestHandler(t *testing.T) {
Expand Down
Loading

0 comments on commit b4a8ac4

Please sign in to comment.