v1/packages/roleypoly-bot/utils.js
2019-04-14 13:00:27 -05:00

8 lines
231 B
JavaScript

// @flow
import type Bot from './Bot'
import type { Message } from 'eris'
export const withTyping = (fn: Function) => async (bot: Bot, msg: Message, ...args: any[]) => {
msg.channel.sendTyping()
return fn(bot, msg, ...args)
}