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 = { module.exports = {
load: () => {
},
loadBot: (b) => { loadBot: (b) => {
b._client.on('profileless_chat', (data) => { b._client.on('profileless_chat', (data) => {
if (data.type === 4) { if (data.type === 4) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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