Files
NitoriBot/src/data/default_custom_chat.js
T
2025-01-15 11:32:27 -05:00

28 lines
572 B
JavaScript

function inject (context) {
const bot = context.bot;
const config = context.config;
const options = context.options;
bot.customChat = {
enabled: true,
chat (message) {
const prefix = {
translate: "chat.type.text",
with: [
{ selector: `${bot.username}` },
{ text: "", extra: [ message ] }
]
};
bot.tellraw("@a", prefix)
}
}
}
module.exports = {
data: {
enabled: true,
name: "custom chat",
type: "extras"
},
inject
}