DEV Community

loading...

Discussion on: A Simple Slack Bot in Go - The Bot

Collapse
sergioteixeiraptc profile image
Sergio Teixeira

Hello, how would you run shell commands with the same approach?

Collapse
shindakun profile image
Steve Layton Author

If you are looking to run shell commands after someone says something in slack you could probably use the exec package from the standard library. Just update whatever your match text is and have that trigger a function or run exec directly. I haven't really tried it though so your mileage may vary.

Forem Open with the Forem app