Files
NitoriBot/src/commands/echo.js
T

32 lines
651 B
JavaScript
Raw Normal View History

2024-07-07 15:44:16 -04:00
module.exports = {
name: 'echo',
trustLevel: 0,
aliases: [
"say",
"botsay",
],
description: 'Make me say something',
2024-07-20 20:27:17 -04:00
usages: [
"<message>"
],
2024-07-07 15:44:16 -04:00
execute (context) {
const bot = context.bot
const message = context.arguments.join(' ')
if (message.startsWith('/')) {
bot.chat.command(message.substring(1))
return
}
bot.chat.message(message)
2024-08-04 22:59:52 -04:00
},
discordExecute (context) {
const bot = context.bot;
const args = context.arguments;
if (args.join(' ').startsWith('/')) {
bot.chat.command(args.join(' ').substring(1))
return
}
bot.chat.message(args.join(' '))
2024-07-07 15:44:16 -04:00
}
}