Implement @a support for c.send

This commit is contained in:
7cc5c4f330d47060 2024-07-16 16:43:54 -04:00
parent cb65edf815
commit 8965e533d6

View file

@ -2,7 +2,7 @@
const parse = require("../util/chatparse.js")
class Command{
constructor (uuid,user,nick,cmd,prefix,bot,verify){
this.send = (uuid,text)=>{bot.tellraw(uuid,text)};
this.send = (text,uuid)=>{bot.tellraw(uuid?uuid:"@a",text)};
this.reply = text => bot.tellraw(uuid,text);
this.uuid = uuid;
this.username = user;