Files
NitoriBot/commands/echo.js
T
2024-02-13 17:11:00 +00:00

17 lines
359 B
JavaScript

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