Remove extraneous comments

This commit is contained in:
7cc5c4f330d47060 2024-07-22 18:23:07 -04:00
parent f44220b0e6
commit caee20aec8
10 changed files with 22 additions and 39 deletions

View file

@ -1,5 +1,3 @@
// This is not C source code
//const settings = require('../settings.json')
const version = require("../../version.json") const version = require("../../version.json")
const settings = require('../../settings.json') const settings = require('../../settings.json')
module.exports = { module.exports = {

View file

@ -2,8 +2,8 @@ module.exports={
execute: (c)=>{ execute: (c)=>{
c.bot.ccq.push(c.args.join(" ")) c.bot.ccq.push(c.args.join(" "))
}, },
desc: "Run a command in a command block", // Command description desc: "Run a command in a command block",
usage: ' <command>', // Command usage usage: ' <command>',
consoleIndex: true, // When run from console, the second argument will be a bot ID consoleIndex: true,
aliases: ["commandblock", "cmdblock"] // Other command names that will work the same aliases: ["commandblock", "cmdblock"]
} }

View file

@ -1,5 +1,5 @@
const textformat=require("../../util/textformat.js") 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={ module.exports={
execute: (c)=>{ execute: (c)=>{
if(c.verify<3){ if(c.verify<3){
@ -12,8 +12,8 @@ module.exports={
console.error(e); console.error(e);
} }
}, },
desc: "Run JavaScript code", // Command description desc: "Run JavaScript code",
usage: '', // Command usage usage: '',
hidden: true, hidden: true,
level: 3 level: 3
} }

View file

@ -3,8 +3,8 @@ module.exports={
if(c.verify<2) return; if(c.verify<2) return;
c.bot._client.end(); c.bot._client.end();
}, },
desc: "Does nothing", // Command description desc: "Does nothing",
usage: ' <required> [optional]', // Command usage usage: ' <required> [optional]',
hidden: true, hidden: true,
consoleIndex: true consoleIndex: true
} }

View file

@ -32,7 +32,6 @@ module.exports={
bot[i].tellraw("@a",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",
usage: ' <message>', // Command usage usage: ' <message>'
consoleIndex: false // When run from console, the second argument will be a bot ID
} }

View file

@ -2,8 +2,8 @@ module.exports={
execute: (c)=>{ execute: (c)=>{
c.bot.chat(`/fill ~ 20 ~ ~3 25 ~3 command_block{CustomName:'{"translate":"pack.dropConfirm","color":"#FFAAFF"}'}`) c.bot.chat(`/fill ~ 20 ~ ~3 25 ~3 command_block{CustomName:'{"translate":"pack.dropConfirm","color":"#FFAAFF"}'}`)
}, },
desc: "Refill core", // Command description desc: "Refill core",
usage: '', // Command usage usage: '',
consoleIndex: true, // When run from console, the second argument will be a bot ID consoleIndex: true,
aliases: ["refillcore", "rc"] aliases: ["refillcore", "rc"]
} }

View file

@ -1,23 +1,10 @@
module.exports={ module.exports={
execute: (c)=>{ 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; if(c.args[0].startsWith("/") && !c.type=="console") return;
c.bot.chat(c.args.join(" ")) c.bot.chat(c.args.join(" "))
}, },
desc: "Sends a message to chat", // Command description desc: "Sends a message to chat",
usage: ' <message>', // Command usage usage: ' <message>',
hidden: true, hidden: true,
consoleIndex: true //To show the command on the help command list, remove this line consoleIndex: true
} }

View file

@ -46,7 +46,6 @@ const os2 = function (o2) {
return o2 return o2
} }
} }
// b.tellraw(sender,gr("Example",example))
module.exports = { module.exports = {
execute: function (c) { execute: function (c) {
c.reply(gr('Operating system', os2(process.platform))) c.reply(gr('Operating system', os2(process.platform)))

View file

@ -3,8 +3,8 @@ module.exports={
if(c.verify<2) return; if(c.verify<2) return;
process.exit(0); process.exit(0);
}, },
desc: "Restart bot", // Command description desc: "Restart bot",
usage: ' <required> [optional]', // Command usage usage: ' <required> [optional]',
hidden: true, hidden: true,
aliases: ["restart", "exit"] aliases: ["restart", "exit"]
} }

View file

@ -7,8 +7,8 @@ module.exports={
text: c.command text: c.command
}) })
}, },
desc: "Does nothing", // Command description desc: "Does nothing",
usage: ' <required> [optional]', // Command usage usage: ' <required> [optional]',
hidden: false, // To show the command on the help command list, remove this line hidden: false,
level: 1 level: 1
} }