xnok / slack-go-demo-socketmode Goto Github PK
View Code? Open in Web Editor NEWDemo the use of Socket Mode to build SlackBots in Golang. An attempt to improve https://github.com/slack-go/slack.
License: Apache License 2.0
Demo the use of Socket Mode to build SlackBots in Golang. An attempt to improve https://github.com/slack-go/slack.
License: Apache License 2.0
Hi,
I get the following errors while running the code:
controllers/appHomeController.go:15:16: undefined: socketmode.SocketmodeHandler
controllers/appHomeController.go:18:41: undefined: socketmode.SocketmodeHandler
controllers/appHomeController.go:55:15: clt.GetApiClient undefined (type *socketmode.Client has no field or method GetApiClient)
controllers/appHomeController.go:74:15: clt.GetApiClient undefined (type *socketmode.Client has no field or method GetApiClient)
controllers/appHomeController.go:102:15: clt.GetApiClient undefined (type *socketmode.Client has no field or method GetApiClient)
controllers/greetingController.go:14:16: undefined: socketmode.SocketmodeHandler
controllers/greetingController.go:17:42: undefined: socketmode.SocketmodeHandler
controllers/greetingController.go:49:22: clt.GetApiClient undefined (type *socketmode.Client has no field or method GetApiClient)
controllers/greetingController.go:60:14: clt.GetApiClient undefined (type *socketmode.Client has no field or method GetApiClient)
controllers/greetingController.go:83:22: clt.GetApiClient undefined (type *socketmode.Client has no field or method GetApiClient)
controllers/greetingController.go:83:22: too many errors
pls also notice that there is an error in go.mod as it refers to local path (i guess it should be fixed to:
replace github.com/slack-go/slack => github.com/xnok/slack v0.8.0
)
Hi,
I'm getting:
ERROR publishHomeTabView: received empty parameters
because evt_app_home_opened.User
is empty. When I'm trying to print evt_app_home_opened it seems like all the fields are empty:
{ {{false { [] []}} <nil> <nil> <nil> {[]} <nil> false false }}
any advice?
thanks.
The method, GetApiClient, can't be found in this and the next lines.
Error:
clt.GetApiClient undefined (type *socketmode.Client has no field or method GetApiClient)
I checked socketmode.Client for this method, and there's nothing.
I am just starting my journey with Slack programming. Thank you for the tutorial.
There seems to be some things missing, and the commands in the article don't match up with the commands for go, as well as the required items in the app config. That isn't to say that I may be doing something wrong. I am not understanding how to run the examples.
Since I couldn't get it working via the commands in your tutorial, I downloaded the zip file of the repo. I added a test_slack.env file with my appropriate tokens.
When I run main.go from the slack-go-socketmode-main folder, it appears to connect successfully to socket mode (I assume so, becuase I am getting constant messages with socketmode: 2021/07/06 11:25:37 socket_mode_managed_conn.go:561: WebSocket ping message received: Ping from applink-canary-5467cdc868-t2smp).
When I go to the app home page in Slack, it never creates the page (I get a message that this is still a work in progress). Now I am at a loss as to where to proceed.
Thanks in advance...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.