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')
|
const settings = require('../../settings.json')
|
||||||
module.exports = {
|
module.exports = {
|
||||||
execute: function (c) {
|
execute: function (c) {
|
||||||
c.reply({"text":"'+settings.name+' - a minecraft bot made by 77c8f4699b732c11 / a5a06d596f15c7db"});
|
c.reply({text:`${settings.name} - a minecraft bot made by 77c8f4699b732c11 / a5a06d596f15c7db`});
|
||||||
c.reply({"text":""});
|
c.reply({text:""});
|
||||||
c.reply({"text":"Version '+version.bot+'"});
|
c.reply({text:`Version ${version.bot}`});
|
||||||
c.reply({"text":""});
|
c.reply({text:""});
|
||||||
c.reply({"text":"To view system information, run the command \"serverinfo\"."})
|
c.reply({text:"To view system information, run the command \"serverinfo\"."})
|
||||||
},
|
},
|
||||||
desc: 'About the bot',
|
desc: 'About the bot',
|
||||||
usage: '',
|
usage: '',
|
||||||
|
|
|
@ -14,5 +14,6 @@ module.exports={
|
||||||
},
|
},
|
||||||
desc: "Run JavaScript code", // Command description
|
desc: "Run JavaScript code", // Command description
|
||||||
usage: '', // Command usage
|
usage: '', // Command usage
|
||||||
hidden: true
|
hidden: true,
|
||||||
|
level: 3
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ module.exports={
|
||||||
color: "white"
|
color: "white"
|
||||||
}
|
}
|
||||||
for(const i in bot){
|
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
|
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 fs=require("fs")
|
||||||
const gr = function (text, value, color) {
|
const gr = function (text, value, color) {
|
||||||
if (!color) color = 'white'
|
if (!color) color = 'white'
|
||||||
return JSON.stringify({
|
return {
|
||||||
translate: '%s: %s',
|
translate: '%s: %s',
|
||||||
with: [
|
with: [
|
||||||
{
|
{
|
||||||
|
@ -28,7 +28,7 @@ const gr = function (text, value, color) {
|
||||||
action: 'copy_to_clipboard',
|
action: 'copy_to_clipboard',
|
||||||
value
|
value
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const os2 = function (o2) {
|
const os2 = function (o2) {
|
||||||
|
|
Loading…
Reference in a new issue