A game posted through the slash command's response_url (bot not invited) isn't the bot's own message: chat.update answered cant_update_message and postEphemeral not_in_channel, so every "Me too!" / "I'm out" click did nothing. Each step now falls back to the click's own response_url (replace_original for the game, ephemeral for private answers, a channel message for "Game on!" / "dropped out"); any other failure answers the clicker "Something went wrong — try again" instead of nothing. The poster of a game sent through the fallback is asked to /invite @Babybot. npm test: the clicks against a fake Slack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
193 B
JSON
13 lines
193 B
JSON
{
|
|
"name": "babybot",
|
|
"version": "1.0.0",
|
|
"main": "app.js",
|
|
"scripts": {
|
|
"start": "node app.js",
|
|
"test": "node --test"
|
|
},
|
|
"dependencies": {
|
|
"@slack/bolt": "^4.1.0"
|
|
}
|
|
}
|