Basic Slack App Example
This is a basic, fully customizable example Slack app that you can install into your Slack workspace in just a few clicks by deploying it to Autocode. Right out of the box, your app will:
- Respond to a Slack slash command called
hello by sending a reply message from the app containing whatever text follows the command.
- Send a friendly welcome message to users who join a new channel in your Slack workspace.
This behavior is completely customizable by editing the app code. The only things you'll need are an Autocode account and a Slack workspace!
Once installed, typing
/cmd hello <text> will trigger
/functions/events/slack/command/hello.js and provide an output that look like this:
Member Joined Channel Handler
When a member joins a public channel, your app will respond to the resulting member_joined_channel event from Slack by running
/functions/events/slack/member_joined_channel.js. This will generate a message like this:
If you have any questions or feedback, please join our community Slack channel from the Community tab in the top bar. You can also follow us on Twitter, @AutocodeHQ.