FridayNightFunkinBoyfriendBot/commands/echo.js

18 lines
413 B
JavaScript

module.exports = {
name: 'echo',
description:['make me say something in chat'],
aliases:['chatsay'],
hashOnly:false,
consoleOnly:false,
ownerOnly:false,
execute (context) {
const bot = context.bot
const message = context.arguments.join(' ')
if (message.startsWith('/')) {
bot.command(message.substring(1))
return
}
bot.chat(message)
}
}