Files
automatisch/packages/backend/src/apps/slack/dynamic-fields/send-as-bot/index.js
2024-01-05 17:44:21 +01:00

31 lines
854 B
JavaScript

export default {
name: 'List fields after send as bot',
key: 'listFieldsAfterSendAsBot',
async run($) {
if ($.step.parameters.sendAsBot) {
return [
{
label: 'Bot name',
key: 'botName',
type: 'string',
required: true,
value: 'Automatisch',
description:
'Specify the bot name which appears as a bold username above the message inside Slack. Defaults to Automatisch.',
variables: true,
},
{
label: 'Bot icon',
key: 'botIcon',
type: 'string',
required: false,
description:
'Either an image url or an emoji available to your team (surrounded by :). For example, https://example.com/icon_256.png or :robot_face:',
variables: true,
},
];
}
},
};