Merge pull request #2 from abby9664/revert-1-master

Revert "Add /countstatus command"
This commit is contained in:
Avi 2020-12-09 16:17:03 -08:00 committed by GitHub
commit 3ae8964120
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,19 +201,6 @@ app.event('message', async (body) => {
} }
}); });
app.command('/countstatus', async ({ command, ack, respond }) => {
await ack()
const channel = 'CDJMS683D'
let oldest = await fetchOldest(channel)
let latest = await fetchLatest(channel)
await respond({
text: `The day's current progress is *${latest - oldest}*!`,
response_type: 'ephemeral'
})
});
(async (req, res) => { (async (req, res) => {
// Start your app // Start your app
try { try {