问题
I'd like to be able to create messages that use the /remind
slash command in Slack via an API (probably either with an incoming webhook or the web API.
When I post a message via the web API, however, the command just comes through like a "regular" message, for example, /remind me in 1 month to follow up with the Boss
— it doesn't trigger an actual reminder.
Is there a way to set a reminder (or, more generally, use slash commands) programmatically in Slack?
回答1:
It looks like it was added recently to the API: https://api.slack.com/methods/reminders.add
回答2:
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.
来源:https://stackoverflow.com/questions/34940198/how-do-i-set-a-reminder-via-the-slack-api