FridayNightFunkinBoyfriendBot/commands/say.js

55 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

2024-01-12 12:24:01 -05:00
const CommandError = require("../CommandModules/command_error");
const buildstring = process.env["buildstring"];
const foundation = process.env["FoundationBuildString"];
2023-12-17 14:55:27 -05:00
module.exports = {
2024-01-12 12:24:01 -05:00
name: "say",
//<< this one line of code broke it lmao
description: ["make me say something in custom chat"],
trustLevel: 0,
aliases: [
"tellrawsay",
"tellrawmsg",
"trmessage",
"tellrawmessage",
"sourcesendfeedbacksay",
"sourcesendfeedbackmsg",
"sourcesendfeedbackmessage",
"ssfbmsg",
"ssfmessage",
],
execute(context) {
const message = context.arguments.join(" ");
const bot = context.bot;
2023-12-17 14:55:27 -05:00
const prefix = {
2024-01-12 12:24:01 -05:00
translate: "[%s%s%s] \u203a %s",
bold: false,
color: "white",
with: [
{
color: "dark_purple",
text: "FNF",
bold: true,
2023-12-17 14:55:27 -05:00
},
2024-01-12 12:24:01 -05:00
{
color: "#00FFFF",
text: "Boyfriend",
bold: true,
2023-12-17 14:55:27 -05:00
},
2024-01-12 12:24:01 -05:00
{ color: "dark_red", text: "Bot", bold: true },
2023-12-17 14:55:27 -05:00
2024-01-12 12:24:01 -05:00
{ color: "green", text: `${message}` },
],
};
2023-12-17 14:55:27 -05:00
2024-01-12 12:24:01 -05:00
bot.tellraw([prefix]);
},
};
2023-12-17 14:55:27 -05:00
//[%s] %s %s
//was it showing like that before?
// just do text bc too sus rn ig
2024-01-12 12:24:01 -05:00
// You should remove the with thing and the translate and replace
2023-12-17 14:55:27 -05:00
// Parker, why is hashing just random characters???
2024-01-12 12:24:01 -05:00
//wdym