This commit is contained in:
Matthew Stanciu 2020-11-17 16:24:12 -05:00
parent 772559a2f3
commit 77b854ab4f

View file

@ -203,11 +203,10 @@ app.event('message', async (body) => {
app.command('/countstatus', async ({ command, ack, respond }) => { app.command('/countstatus', async ({ command, ack, respond }) => {
await ack() await ack()
const { text, user_id } = command
const channel = 'CDJMS683D' const channel = 'CDJMS683D'
let oldest = await fetchOldest(channel); let oldest = await fetchOldest(channel)
let latest = await fetchLatest(channel); let latest = await fetchLatest(channel)
await respond({ await respond({
text: `The day's current progress is *${latest - oldest}*!`, text: `The day's current progress is *${latest - oldest}*!`,