Make say command support commands from console
This commit is contained in:
parent
8fcd6233f2
commit
00bc495096
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ module.exports={
|
|||
c.bot: Bot that received the command. Will be different type based on where it was received
|
||||
c.type: Type of bot receiving the command ("minecraft", "console", "discord")
|
||||
*/
|
||||
if(c.args[0].startsWith("/")) return;
|
||||
if(c.args[0].startsWith("/") && !c.type=="console") return;
|
||||
c.bot.chat(c.args.join(" "))
|
||||
},
|
||||
desc: "Sends a message to chat", // Command description
|
||||
|
|
|
@ -13,7 +13,7 @@ module.exports={//profileless_chat player_chat system_chat
|
|||
},150)
|
||||
//b.chat("Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. ")
|
||||
})
|
||||
b.chatqueue=[];//"Prefix: \""];
|
||||
b.chatqueue=[];
|
||||
b.chat=function chat(msg){
|
||||
if(msg.length==0) return;
|
||||
msg.match(/.{1,250}/g).forEach(element => {
|
||||
|
|
Loading…
Reference in a new issue