Remove extraneous comments
This commit is contained in:
parent
8625473d65
commit
c3ef6752f3
4 changed files with 8 additions and 9 deletions
|
@ -9,7 +9,7 @@ const sortHelp = function sortHelp (c1, c2) {
|
|||
}
|
||||
|
||||
const bpl = fs.readdirSync('./commands')
|
||||
for (const i in bpl) { // Built-in loadCMD to the help command, to prevent circular require
|
||||
for (const i in bpl) {
|
||||
if (!bpl[i].endsWith('.js')) {
|
||||
continue
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ module.exports = {
|
|||
})
|
||||
})
|
||||
|
||||
b._client.on('chat', (data) => { // Legacy chat
|
||||
b._client.on('chat', (data) => { // Legacy chat for versions <1.19
|
||||
const json = parse1204(data.message)
|
||||
const parsed = parsePlain(json)
|
||||
let chatName
|
||||
|
|
|
@ -56,7 +56,7 @@ module.exports = {
|
|||
|
||||
b._client.on('login', () => {
|
||||
b._client.write("settings",{
|
||||
locale: "ru_RU", // Русский (Россия)
|
||||
locale: "ru_RU",
|
||||
viewDistance: 4,
|
||||
chatFlags: 0, // Enable full chat functionality
|
||||
chatColors: true,
|
||||
|
@ -71,7 +71,7 @@ module.exports = {
|
|||
})
|
||||
})
|
||||
b.on('ccstart', () => {
|
||||
setTimeout(() => { b.interval.ccqi = setInterval(b.advanceccq, 2) }, 1000) // 1 second and 2 milliseconds
|
||||
setTimeout(() => { b.interval.ccqi = setInterval(b.advanceccq, 2) }, 1000)
|
||||
b.ccStarted = true
|
||||
})
|
||||
b.on('chat', (data) => {
|
||||
|
|
|
@ -1,17 +1,16 @@
|
|||
// HOW TO WRITE CLASS JS
|
||||
const index = require('../index.js')
|
||||
const parse = require('../util/chatparse_console.js')
|
||||
const settings = require('../settings.json')
|
||||
class ConsoleCommand {
|
||||
constructor (cmd, index2) {
|
||||
this.send = () => {} // not needed for console
|
||||
this.send = () => {}
|
||||
this.reply = text => process.stdout.write(parse(text) + '\n')
|
||||
this.uuid = 'dde5a2a6-ebdd-7bbb-8eac-f75b10c10446' // hard-coded because uuid does not exist at console
|
||||
this.uuid = 'dde5a2a6-ebdd-7bbb-8eac-f75b10c10446'
|
||||
this.username = 'Owner'
|
||||
this.nickname = 'Console'
|
||||
this.command = cmd
|
||||
this.msgType = "_bot_console";
|
||||
this.prefix = '' // prefix does not exist at console
|
||||
this.prefix = ''
|
||||
this.bot = index2 >= 0
|
||||
? index.bot[index2]
|
||||
: {}
|
||||
|
@ -19,7 +18,7 @@ class ConsoleCommand {
|
|||
this.args = cmd.split(' ').slice(1)
|
||||
this.verify = 3
|
||||
this.host = ''
|
||||
this.port = '3' // :3
|
||||
this.port = '3'
|
||||
this.lang = settings.defaultLang
|
||||
this.colors = settings.colors
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue