Skip to content

Commit

Permalink
chore(deps): bump @slack/bolt from 3.22.0 to 4.1.1 (#650)
Browse files Browse the repository at this point in the history
* chore(deps): bump @slack/bolt from 3.22.0 to 4.1.1

Bumps [@slack/bolt](https://github.com/slackapi/bolt) from 3.22.0 to 4.1.1.
- [Release notes](https://github.com/slackapi/bolt/releases)
- [Commits](https://github.com/slackapi/bolt/compare/@slack/[email protected]...@slack/[email protected])

---
updated-dependencies:
- dependency-name: "@slack/bolt"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: update middleware references to bolt-v4 versions

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alice Jones <[email protected]>
  • Loading branch information
dependabot[bot] and Pactionly authored Dec 1, 2024
1 parent 09923a3 commit 923bb54
Show file tree
Hide file tree
Showing 9 changed files with 904 additions and 1,224 deletions.
2 changes: 1 addition & 1 deletion features/balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { directMessage, anyOf } = require("../middleware");
module.exports = function (app) {
app.message(
"balance",
anyOf(directMention(), directMessage()),
anyOf(directMention, directMessage()),
respondToBalance,
);
};
Expand Down
2 changes: 1 addition & 1 deletion features/deduction.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { directMessage, anyOf } = require("../middleware");
module.exports = function (app) {
app.message(
"deduct",
anyOf(directMention(), directMessage()),
anyOf(directMention, directMessage()),
respondToDeduction,
);
};
Expand Down
2 changes: 1 addition & 1 deletion features/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { directMention } = require("@slack/bolt");
const { anyOf, directMessage } = require("../middleware");

module.exports = function (app) {
app.message("help", anyOf(directMention(), directMessage()), respondToHelp);
app.message("help", anyOf(directMention, directMessage()), respondToHelp);
app.message(/(thunderfury|Thunderfury)/, respondToEasterEgg);
};

Expand Down
2 changes: 1 addition & 1 deletion features/leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { directMessage, anyOf } = require("../middleware");
module.exports = function (app) {
app.message(
"leaderboard",
anyOf(directMessage(), directMention()),
anyOf(directMessage(), directMention),
respondToLeaderboard,
);
app.action(/leaderboard-\d+/, updateLeaderboardResponse);
Expand Down
2 changes: 1 addition & 1 deletion features/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { directMessage, anyOf } = require("../middleware");
module.exports = function (app) {
app.message(
"metrics",
anyOf(directMessage(), directMention()),
anyOf(directMessage(), directMention),
respondToMetrics,
);
app.action(/metrics-\d+/, updateMetricsResponse);
Expand Down
6 changes: 1 addition & 5 deletions features/redeem.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ const balance = require("../service/balance");
const deduction = require("../service/deduction");

module.exports = function (app) {
app.message(
"redeem",
anyOf(directMention(), directMessage()),
respondToRedeem,
);
app.message("redeem", anyOf(directMention, directMessage()), respondToRedeem);
app.action({ action_id: "redeem" }, redeemItem);
};

Expand Down
2 changes: 1 addition & 1 deletion features/refund.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const refund = require("../service/refund");
module.exports = function (app) {
app.message(
"refund",
anyOf(directMention(), directMessage()),
anyOf(directMention, directMessage()),
refund.respondToRefund,
);
};
Loading

0 comments on commit 923bb54

Please sign in to comment.