Remove load function stubs

This commit is contained in:
7cc5c4f330d47060 2024-07-29 01:33:39 -04:00
parent c7e3e3deba
commit bacfdfad49
10 changed files with 0 additions and 28 deletions

View file

@ -12,9 +12,6 @@ const messageTypes = [
''
]
module.exports = {
load: () => {
},
loadBot: (b) => {
b._client.on('profileless_chat', (data) => {
if (data.type === 4) {

View file

@ -1,7 +1,4 @@
module.exports = {
load: () => {
},
loadBot: (b) => {
b.cloops = []
b.addCloop = function (command, rate) {

View file

@ -37,9 +37,6 @@ const sortHelp = function sortHelp (c1, c2) {
return level1 - level2
}
module.exports = {
load: () => {
},
loadBot: (b) => {
b.prefix = settings.prefix
b.lastCmd = 0

View file

@ -2,9 +2,6 @@ const uuidToInt = require('../util/uuidtoint.js')
module.exports = {
cs: 4,
cs_v: 6,
load: function () {
},
loadBot: function (b) {
b.interval.commandFill = setInterval(() => { if (b.sc_tasks.cc) b.sc_tasks.cc.failed = 1 }, 60000)
b.ccq = []

View file

@ -40,9 +40,6 @@ function consoleWrite (text) {
rl.prompt(true)
}
module.exports = {
load: () => {
},
loadBot: (b) => {
b.info = (msg) => {
consoleWrite(`[${b.id}] [info] ${msg}`)

View file

@ -1,7 +1,4 @@
module.exports = {
load: () => {
},
loadBot: (b) => {
b._client.on('login', () => {
b.interval.chatQueue = setInterval(() => {

View file

@ -1,8 +1,6 @@
const parse = require('../util/chatparse.js')
const parse1204 = require('../util/chatparse_1204.js')
module.exports = {
load: () => {
},
loadBot: (b) => {
b.players = {}
b._client.on('player_info', (data) => {

View file

@ -1,7 +1,5 @@
const index = require('../index.js')
module.exports = {
load: () => {
},
loadBot: (b) => {
b._client.on('end', () => {
b.info('bot ' + b.id + ' disconnected')

View file

@ -11,9 +11,6 @@ class SCTask {
}
}
module.exports = {
load: () => {
},
loadBot: (b) => {
b.sc_tasks = {}
b.interval.sc = setInterval(() => {

View file

@ -1,7 +1,4 @@
module.exports = {
load: () => {
},
loadBot: (b) => {
}