Merge pull request #2 from abby9664/revert-1-master
Revert "Add /countstatus command"
This commit is contained in:
commit
3ae8964120
1 changed files with 0 additions and 13 deletions
13
api/app.js
13
api/app.js
|
@ -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) => {
|
||||
// Start your app
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue