We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd love to reply to a message / command, not by text, but by reaction.
I'm trying to look into this myself, but I'm not experienced enough yet
eg:
$botman->hears('wave', function (BotMan $bot) { $bot->replyWithReaction("thumbsup"); });
https://api.slack.com/methods/reactions.add
I suppose it would need to be added here
driver-slack/src/SlackDriver.php
Line 258 in a832671
The text was updated successfully, but these errors were encountered:
For those stumbling across this issue:
Currently I'm achieving this with a 2nd framework
https://github.com/jolicode/slack-php-api
$SlackClient = JoliCode\Slack\ClientFactory::create($SLACK_TOKEN);
$botman->hears('thumbsup', function (BotMan $bot) { global $SlackClient; $SlackClient->reactionsAdd( [ 'channel' => $bot->getMessage()->getPayload()->get('channel'), 'name' => 'thumbsup', 'timestamp' => $bot->getMessage()->getPayload()->get('ts'), ]); });
Sorry, something went wrong.
No branches or pull requests
I'd love to reply to a message / command, not by text, but by reaction.
I'm trying to look into this myself, but I'm not experienced enough yet
eg:
https://api.slack.com/methods/reactions.add
I suppose it would need to be added here
driver-slack/src/SlackDriver.php
Line 258 in a832671
The text was updated successfully, but these errors were encountered: