Philipp Werminghausen
Philipp Werminghausen

Reputation: 1152

How do I make slash commands work on my bot in Slack?

How do I make slash commands work on my bot in Slack?

I'm using chat.postMessage to have the bot post.

For example, if I type /giphy something, it pulls in a GIF image, but if my bot posts the exact same thing it does not do anything.

Upvotes: 1

Views: 725

Answers (2)

yorammi
yorammi

Reputation: 6458

It seems that Slack is not supporting this feature, because commands are only interpreted when typed in the browser or in the Slack application. You can maybe workaround this by using a web browser automation tool such as Selenium or a similar tool.

I've already sent the same answer to How do I set a reminder via the Slack API?.

Upvotes: 1

TWGerard
TWGerard

Reputation: 895

It seems like you won't be able to do what you're trying to do. As far as I can tell you can't have one Slack Integration trigger another Integration. It's not hard to replicate the functionality of the /giphy Integration, though.

Upvotes: 2

Related Questions