This commit is contained in:
ChomeNS 2022-08-19 09:36:34 +07:00
parent d4a7313d21
commit d6aa5bdedd
7 changed files with 40 additions and 39 deletions

View file

@ -1,5 +1,5 @@
/* eslint-disable max-len */
const config = require('../config.json');
const config = require('../config');
module.exports = {
name: 'end',
alias: [],

34
config.js Normal file
View file

@ -0,0 +1,34 @@
/* eslint-disable max-len */
module.exports = {
'prefixes': [
'*',
'cbot ',
'/cbot ',
],
'useChat': true,
'core': {
'layers': 1,
},
'discord': {
'token': 'OTcxNjUwNDU2NzA5Mzk4NTY5.G3lKC2._XQNTTU1Jqmaam_A0JKSe93GP1vFZvDpiXqZzA',
'servers': {
'sus.shhnowisnottheti.me:25565': '990140129245020221',
'play.kaboom.pw:25565': '1000355361196355674',
'129.159.58.114:25565': '998945155316973650',
'192.168.1.103:25565': '1002806756885413978',
'kitsune.icu:25565': '1004006678460637315',
},
'prefix': '!',
'trustedRoleID': '981159334299983953',
},
'servers': [
{
'host': 'sus.shhnowisnottheti.me',
'port': 25565,
},
{
'host': 'kitsune.icu',
'port': 25565,
},
],
};

View file

@ -1,33 +0,0 @@
{
"prefixes": [
"*",
"cbot ",
"/cbot "
],
"useChat": true,
"core": {
"layers": 1
},
"discord": {
"token": "OTcxNjUwNDU2NzA5Mzk4NTY5.GfUrmw.45neSqFN4O9NmkwmqzjsC2avdY3FVvV_kQZ8AE",
"servers": {
"sus.shhnowisnottheti.me:25565": "990140129245020221",
"play.kaboom.pw:25565": "1000355361196355674",
"129.159.58.114:25565": "998945155316973650",
"192.168.1.103:25565": "1002806756885413978",
"kitsune.icu:25565": "1004006678460637315"
},
"prefix": "!",
"trustedRoleID": "981159334299983953"
},
"servers": [
{
"host": "sus.shhnowisnottheti.me",
"port": 25565
},
{
"host": "kitsune.icu",
"port": 25565
}
]
}

View file

@ -5,6 +5,7 @@
/* eslint-disable max-len */
/* eslint-disable no-undef */
const mc = require('minecraft-protocol');
const config = require('./config');
const crypto = require('crypto');
const colorConvert = require('color-convert');
const chatMessage = require('prismarine-chat')('1.18.2');
@ -13,7 +14,6 @@ const generateEaglerUsername = require('./util/generateEaglerUsername');
const {EventEmitter} = require('events');
const fs = require('fs');
const path = require('path');
const config = require('./config.json');
const uuid = require('uuid-by-string');
const readline = require('node:readline');
const {stdin: input, stdout: output} = require('node:process');
@ -139,7 +139,7 @@ function botThings() {
name = name[name.length - 1];
try {
const plug = require(plugin);
plug.inject(bot, dcclient);
plug.inject(bot, dcclient, config);
} catch (e) {
console.log(`Plugin loader: Plugin ${name} is having exception loading the plugin:`);
console.log(util.inspect(e));

View file

@ -1,6 +1,6 @@
/* eslint-disable no-var */
/* eslint-disable max-len */
const config = require('../config.json');
const config = require('../config');
const loadFiles = require('../util/load_files');
const path = require('path');
const {MessageEmbed} = require('discord.js');

View file

@ -1,6 +1,6 @@
/* eslint-disable max-len */
/* eslint-disable require-jsdoc */
const config = require('../config.json');
const config = require('../config');
const chatMessage = require('prismarine-chat')('1.18.2');
const Vec3 = require('vec3');

2
run.js
View file

@ -4,7 +4,7 @@ const readline = require('node:readline');
const {stdin: input, stdout: output} = require('node:process');
const rl = readline.createInterface({input, output});
const process = require('child_process');
const config = require('./config.json');
const config = require('./config');
require('./uptime');
rl.setMaxListeners(Infinity);