clean up
This commit is contained in:
parent
772559a2f3
commit
77b854ab4f
1 changed files with 2 additions and 3 deletions
|
@ -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}*!`,
|
||||||
|
|
Loading…
Add table
Reference in a new issue