Skip to content

Commit

Permalink
Prettier on catchall.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Sep 18, 2019
1 parent 06cb709 commit 01d919e
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions src/interactions/catchall.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
import {
text
} from '../utils'
import { text } from '../utils'

const interactionCatchall = (bot, message) => {
const {
ts: timestamp,
channel,
} = message
const { ts: timestamp, channel } = message

if (Math.random() > 0.5) {
bot.replyInThread(message, text('catchall.reply'))
} else {
bot.api.reactions.add({
timestamp,
channel,
name: text('catchall.emoji'),
}, (err) => {
if (err) console.error(err)
})
bot.api.reactions.add(
{
timestamp,
channel,
name: text('catchall.emoji'),
},
err => {
if (err) console.error(err)
}
)
}
}

export default interactionCatchall
export default interactionCatchall

0 comments on commit 01d919e

Please sign in to comment.