I'd like to create a slack command like /byebye
that first triggers a /giphy peace i'm out of here
command and then triggers a /leave
command in the same channel. From the Slack API, its pretty clear how to create new commands, but its not obvious how to chain other commands within a custom slash command (if its even possible to do). Can you trigger other slash commands inside of a custom slash command and, if so, how do you do it?
Asked
Active
Viewed 871 times
6

dino
- 3,093
- 4
- 31
- 50
-
You can issue commands through the Slack API with an undocumented method. see [this answer](https://stackoverflow.com/a/46830215/4379151) for details. – Erik Kalkoken Nov 04 '18 at 16:04
-
Possible duplicate of [How do you invoke the /poll command using the Slack API?](https://stackoverflow.com/questions/40919745/how-do-you-invoke-the-poll-command-using-the-slack-api) – Erik Kalkoken Nov 05 '18 at 14:08
1 Answers
0
I'd use something like TextExpander to automate this. You could send both commands with the return keys and everything all from a single client-side command.

Matt Haughey
- 1
- 1
-
interesting idea. the trick is that i'd like to cache (server-side) a bunch of clever ways of saying 'goodbye' so that people that `/leave` rooms can do so in style. – dino Aug 10 '15 at 22:23