Skip to content
A Slack application that sends an hourly ping to #random and responds to a /echo command
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Basic Slack App: Scheduled ping, /echo command

Deploy in seconds

This is a basic Slack Application example, written in Node.js, on Standard Library that:

  1. Creates an hourly scheduled event to send the message "Ping!" to #random.

  2. Creates an /echo command that sends the message <@user> said: (text) to the channel it was invoked from.

You can deploy it instantly to Slack without writing any code or configuring any files due to Standard Library's Identity Token support. You'll be walked through setting up the Slack app as part of the configuration process.

NOTE: You will still need to create the /echo command separately, once deployed, that needs to point to: https://<username>

Hourly Ping Event

This event will trigger /functions/events/scheduler/hourly/ping.js and provide an output that look like this:

Echo Command

This event will trigger /functions/events/slack/command/echo.js and provide an output that looks like this (the debug message will only appear in development):

Deploying this Slack App

You can deploy this Slack App to Standard Library by clicking this button:

You'll be asked to log in and be brought to a screen that looks something like this:

Simply click Link Resource and follow the instructions to build and link a Slack app, then click Deploy Project when ready.

Once deployed, you will still need to create the /echo command separately in your Slack app dashboard. For the slash command's request URL, enter https://<username>

Creating your Echo Command on Slack

You can create your echo command by visiting, selecting your app, then clicking Slash commands on the left sidebar.

Click Create Command and fill out your command information. You'll want to use /echo as the command name and https://<username> as the URL, where <username> is your Standard Library username.

Click Save in the bottom right to proceed.

That's it, you're all done! Your Slack app should be ready to go.

Thank You!

Please check out Standard Library or follow us on Twitter, @StdLibHQ.

You can’t perform that action at this time.