Remove extraneous comments
This commit is contained in:
parent
f44220b0e6
commit
caee20aec8
10 changed files with 22 additions and 39 deletions
|
@ -1,5 +1,3 @@
|
|||
// This is not C source code
|
||||
//const settings = require('../settings.json')
|
||||
const version = require("../../version.json")
|
||||
const settings = require('../../settings.json')
|
||||
module.exports = {
|
||||
|
|
|
@ -2,8 +2,8 @@ module.exports={
|
|||
execute: (c)=>{
|
||||
c.bot.ccq.push(c.args.join(" "))
|
||||
},
|
||||
desc: "Run a command in a command block", // Command description
|
||||
usage: ' <command>', // Command usage
|
||||
consoleIndex: true, // When run from console, the second argument will be a bot ID
|
||||
aliases: ["commandblock", "cmdblock"] // Other command names that will work the same
|
||||
desc: "Run a command in a command block",
|
||||
usage: ' <command>',
|
||||
consoleIndex: true,
|
||||
aliases: ["commandblock", "cmdblock"]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const textformat=require("../../util/textformat.js")
|
||||
const index=require("../../index.js") //Not used in the code, but may be used by users of the command
|
||||
const index=require("../../index.js") // Not used in the code, but may be used by users of the command
|
||||
module.exports={
|
||||
execute: (c)=>{
|
||||
if(c.verify<3){
|
||||
|
@ -12,8 +12,8 @@ module.exports={
|
|||
console.error(e);
|
||||
}
|
||||
},
|
||||
desc: "Run JavaScript code", // Command description
|
||||
usage: '', // Command usage
|
||||
desc: "Run JavaScript code",
|
||||
usage: '',
|
||||
hidden: true,
|
||||
level: 3
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@ module.exports={
|
|||
if(c.verify<2) return;
|
||||
c.bot._client.end();
|
||||
},
|
||||
desc: "Does nothing", // Command description
|
||||
usage: ' <required> [optional]', // Command usage
|
||||
desc: "Does nothing",
|
||||
usage: ' <required> [optional]',
|
||||
hidden: true,
|
||||
consoleIndex: true
|
||||
}
|
||||
|
|
|
@ -32,7 +32,6 @@ module.exports={
|
|||
bot[i].tellraw("@a",json)
|
||||
}
|
||||
},
|
||||
desc: "Send a message to all servers the bot is connected to", // Command description
|
||||
usage: ' <message>', // Command usage
|
||||
consoleIndex: false // When run from console, the second argument will be a bot ID
|
||||
desc: "Send a message to all servers the bot is connected to",
|
||||
usage: ' <message>'
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@ module.exports={
|
|||
execute: (c)=>{
|
||||
c.bot.chat(`/fill ~ 20 ~ ~3 25 ~3 command_block{CustomName:'{"translate":"pack.dropConfirm","color":"#FFAAFF"}'}`)
|
||||
},
|
||||
desc: "Refill core", // Command description
|
||||
usage: '', // Command usage
|
||||
consoleIndex: true, // When run from console, the second argument will be a bot ID
|
||||
desc: "Refill core",
|
||||
usage: '',
|
||||
consoleIndex: true,
|
||||
aliases: ["refillcore", "rc"]
|
||||
}
|
||||
|
|
|
@ -1,23 +1,10 @@
|
|||
module.exports={
|
||||
execute: (c)=>{
|
||||
//Blank template
|
||||
/*
|
||||
c.send(text, user?): Send text to all ("/tellraw @a")
|
||||
c.reply(text): Send text to command sender
|
||||
c.uuid: Unique identifier (UUID for Minecraft, Discord ID for Discord)
|
||||
c.username: Username of sender
|
||||
c.nickname: Nickname of sender when applicable
|
||||
c.command: Command string
|
||||
c.args: Arguments of command (above without the first section, and split at every space)
|
||||
c.prefix: Prefix being used to send the command (when applicable)
|
||||
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("/") && !c.type=="console") return;
|
||||
c.bot.chat(c.args.join(" "))
|
||||
},
|
||||
desc: "Sends a message to chat", // Command description
|
||||
usage: ' <message>', // Command usage
|
||||
desc: "Sends a message to chat",
|
||||
usage: ' <message>',
|
||||
hidden: true,
|
||||
consoleIndex: true //To show the command on the help command list, remove this line
|
||||
consoleIndex: true
|
||||
}
|
||||
|
|
|
@ -46,7 +46,6 @@ const os2 = function (o2) {
|
|||
return o2
|
||||
}
|
||||
}
|
||||
// b.tellraw(sender,gr("Example",example))
|
||||
module.exports = {
|
||||
execute: function (c) {
|
||||
c.reply(gr('Operating system', os2(process.platform)))
|
||||
|
|
|
@ -3,8 +3,8 @@ module.exports={
|
|||
if(c.verify<2) return;
|
||||
process.exit(0);
|
||||
},
|
||||
desc: "Restart bot", // Command description
|
||||
usage: ' <required> [optional]', // Command usage
|
||||
desc: "Restart bot",
|
||||
usage: ' <required> [optional]',
|
||||
hidden: true,
|
||||
aliases: ["restart", "exit"]
|
||||
}
|
||||
|
|
|
@ -7,8 +7,8 @@ module.exports={
|
|||
text: c.command
|
||||
})
|
||||
},
|
||||
desc: "Does nothing", // Command description
|
||||
usage: ' <required> [optional]', // Command usage
|
||||
hidden: false, // To show the command on the help command list, remove this line
|
||||
desc: "Does nothing",
|
||||
usage: ' <required> [optional]',
|
||||
hidden: false,
|
||||
level: 1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue