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