mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
kaboom + fix newline ploblem
This commit is contained in:
parent
a016da4d52
commit
2b91373aff
3 changed files with 8 additions and 6 deletions
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
'token': 'OTcxNjUwNDU2NzA5Mzk4NTY5.G3lKC2._XQNTTU1Jqmaam_A0JKSe93GP1vFZvDpiXqZzA',
|
||||
'servers': {
|
||||
'sus.shhnowisnottheti.me:25565': '990140129245020221',
|
||||
'play.kaboom.pw:25565': '1000355361196355674',
|
||||
'kaboom.pw:25565': '1000355361196355674',
|
||||
'129.159.58.114:25565': '998945155316973650',
|
||||
'192.168.1.103:25565': '1002806756885413978',
|
||||
'kitsune.icu:25565': '1004006678460637315',
|
||||
|
@ -27,6 +27,10 @@ module.exports = {
|
|||
'prefix': '!',
|
||||
},
|
||||
'servers': [
|
||||
{
|
||||
'host': 'kaboom.pw',
|
||||
'port': 25565,
|
||||
},
|
||||
{
|
||||
'host': 'sus.shhnowisnottheti.me',
|
||||
'port': 25565,
|
||||
|
|
6
index.js
6
index.js
|
@ -55,7 +55,7 @@ const dcclient = new Client({
|
|||
|
||||
const ayunboomchannel = config.discord.servers['sus.shhnowisnottheti.me:25565'];
|
||||
const dinboomchannel = config.discord.servers['129.159.58.114:25565'];
|
||||
const kaboomchannel = config.discord.servers['play.kaboom.pw:25565'];
|
||||
const kaboomchannel = config.discord.servers['kaboom.pw:25565'];
|
||||
const localclonechannel = config.discord.servers['192.168.1.103:25565'];
|
||||
const kitsunechannel = config.discord.servers['kitsune.icu:25565'];
|
||||
const chomensserverchannel = config.discord.servers['mc.chomens41793.ga:25565'];
|
||||
|
@ -305,8 +305,6 @@ function main() {
|
|||
// fs.appendFileSync('./logs.txt', `${bot.options.host}: ${message.toMotd()}\r\n`);
|
||||
// if (discordMsg)return channel.send(`${discordMsg.substring(0, 2000)}`)
|
||||
if (message.toMotd().startsWith('§8[§eChomeNS §9Discord§8] §c')) return;
|
||||
if (message.toString()==='') return;
|
||||
if (message.toString().startsWith(' ')) return;
|
||||
dcmsg.queue += '\n' + discordMsg;
|
||||
} catch (e) {
|
||||
return;
|
||||
|
@ -422,7 +420,7 @@ dcclient.on('ready', async () => {
|
|||
channel = dcclient.channels.cache.get(dinboomchannel);
|
||||
bot.channel = dcclient.channels.cache.get(dinboomchannel);
|
||||
}
|
||||
if (process.argv[2]==='play.kaboom.pw') {
|
||||
if (process.argv[2]==='kaboom.pw') {
|
||||
channel = dcclient.channels.cache.get(kaboomchannel);
|
||||
bot.channel = dcclient.channels.cache.get(kaboomchannel);
|
||||
}
|
||||
|
|
2
run.js
2
run.js
|
@ -26,7 +26,7 @@ function start(host, port) {
|
|||
if (host=='129.159.58.114') {
|
||||
theServer = 'dinboom';
|
||||
}
|
||||
if (host=='play.kaboom.pw') {
|
||||
if (host=='kaboom.pw') {
|
||||
theServer = 'kaboom';
|
||||
}
|
||||
if (host=='192.168.1.103') {
|
||||
|
|
Loading…
Reference in a new issue