I want Discord to be able to contact my web server for a response when someone interacts with a "bot". This allows my to not run an always connected process for my bot, but just use a simple website / aws lambda function.
Slack has both older "outgoing webhooks" and new slash commands for Slack apps. In both cases these allow a system to interact with users without running a bot process. Instead when the user variously mentions a bot, talks to a bot, or types a certain slash command, then that user's message is HTTP posted to a certain url, and then the server can reply with a message back from the bot.
For example, in my particular use case, I have a traditional discord webhook setup on a channel that notifies us of customer actions in our system.
My current system webhook to Discord:
"Ronald Weasley has purchased Monster Book of Monsters. #5567"
What I want is for a customer service person watching the channel to be able to type:
"@storebot cancel #5567"
Which would be POSTed to my url, and I would reply to that with a:
"Ronald Weasley's order has been canceled"
I'm aware that I could run my own traditional bot, but I really don't want to run and manage another process. I just want my own site and HTTP posts only.
Войдите в службу, чтобы оставить комментарий.