Fix the rest of the commands
This commit is contained in:
parent
520e2a8abd
commit
3e779e459b
4 changed files with 10 additions and 9 deletions
|
@ -4,11 +4,11 @@ const version = require("../../version.json")
|
|||
const settings = require('../../settings.json')
|
||||
module.exports = {
|
||||
execute: function (c) {
|
||||
c.reply({"text":"'+settings.name+' - a minecraft bot made by 77c8f4699b732c11 / a5a06d596f15c7db"});
|
||||
c.reply({"text":""});
|
||||
c.reply({"text":"Version '+version.bot+'"});
|
||||
c.reply({"text":""});
|
||||
c.reply({"text":"To view system information, run the command \"serverinfo\"."})
|
||||
c.reply({text:`${settings.name} - a minecraft bot made by 77c8f4699b732c11 / a5a06d596f15c7db`});
|
||||
c.reply({text:""});
|
||||
c.reply({text:`Version ${version.bot}`});
|
||||
c.reply({text:""});
|
||||
c.reply({text:"To view system information, run the command \"serverinfo\"."})
|
||||
},
|
||||
desc: 'About the bot',
|
||||
usage: '',
|
||||
|
|
|
@ -14,5 +14,6 @@ module.exports={
|
|||
},
|
||||
desc: "Run JavaScript code", // Command description
|
||||
usage: '', // Command usage
|
||||
hidden: true
|
||||
hidden: true,
|
||||
level: 3
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ module.exports={
|
|||
color: "white"
|
||||
}
|
||||
for(const i in bot){
|
||||
bot[i].tellraw("@a",JSON.stringify(json))
|
||||
bot[i].tellraw("@a",json)
|
||||
}
|
||||
},
|
||||
desc: "Send a message to all servers the bot is connected to", // Command description
|
||||
|
|
|
@ -6,7 +6,7 @@ const version = require("../../version.json")
|
|||
const fs=require("fs")
|
||||
const gr = function (text, value, color) {
|
||||
if (!color) color = 'white'
|
||||
return JSON.stringify({
|
||||
return {
|
||||
translate: '%s: %s',
|
||||
with: [
|
||||
{
|
||||
|
@ -28,7 +28,7 @@ const gr = function (text, value, color) {
|
|||
action: 'copy_to_clipboard',
|
||||
value
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const os2 = function (o2) {
|
||||
|
|
Loading…
Reference in a new issue