FridayNightFunkinBoyfriendBot/commands/echo.js

17 lines
359 B
JavaScript
Raw Normal View History

2024-02-15 11:04:05 -05:00
module.exports = {
name: 'echo',
description:['make me say something in chat'],
aliases:['chatsay'],
trustLevel: 0,
execute (context) {
const bot = context.bot
const message = context.arguments.join(' ')
if (message.startsWith('/')) {
bot.command(message.substring(1))
return
}
bot.chat(message)
}
}