FridayNightFunkinBoyfriendBot/commands/echo.js

19 lines
413 B
JavaScript
Raw Normal View History

2023-12-17 14:55:27 -05:00
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)
}
}