mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-26 04:29:11 +00:00
8 lines
231 B
JavaScript
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)
|
|
}
|