mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2025-03-22 02:05:09 -04:00
netmsg fix (took ages to figure it out) + delete debug
This commit is contained in:
parent
2b810a1d64
commit
9b5ebe4cc0
2 changed files with 5 additions and 17 deletions
|
@ -12,22 +12,13 @@ module.exports = {
|
|||
color: 'dark_gray',
|
||||
},
|
||||
{
|
||||
text: bot.options.host,
|
||||
text: bot.options.host === 'kitsune.icu' ? 'kit' : bot.options.host,
|
||||
color: 'gray',
|
||||
hoverEvent: {
|
||||
action: 'show_text',
|
||||
contents: [
|
||||
{
|
||||
text: 'Click here to copy the server to your clipboard!',
|
||||
color: 'green',
|
||||
},
|
||||
],
|
||||
},
|
||||
clickEvent: {
|
||||
action: 'copy_to_clipboard',
|
||||
value: bot.options.host,
|
||||
},
|
||||
},
|
||||
bot.options.host === 'kitsune.icu' ? {
|
||||
text: 'sune.icu',
|
||||
color: 'gray',
|
||||
} : '',
|
||||
{
|
||||
text: '] ',
|
||||
color: 'dark_gray',
|
||||
|
|
|
@ -60,9 +60,6 @@ function inject(bot, dcclient, config, rl) {
|
|||
if (line.startsWith('.csvr ')) {
|
||||
const host = line.substring(6);
|
||||
const bots = bot.getBots();
|
||||
bots.forEach((bot) => {
|
||||
bot.console.info(bot.options.host);
|
||||
});
|
||||
bots.forEach((bot) => bot.console.host = host);
|
||||
bot.console.info(`Host set to: ${host}`);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue