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

18 lines
352 B
JavaScript

// @flow
import type { Command } from './_types'
import type Bot from '../Bot'
import type { Message } from 'eris'
const cmds: Command[] = [
{
regex: /^hi/,
usage: 'hi',
description: 'says hello',
handler: (bot: Bot, msg: Message) => {
msg.channel.createMessage('Hi there!')
}
}
]
export default new Set<Command>(cmds)