mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
ss
This commit is contained in:
parent
a3a878cd29
commit
0b8af86ca5
4 changed files with 8 additions and 4 deletions
|
@ -71,7 +71,11 @@ module.exports = {
|
|||
playUrl(bot, args.slice(1));
|
||||
}
|
||||
if (args[0]==='stop') {
|
||||
bot.core.run('minecraft:tellraw @a ' + JSON.stringify([{text: 'Stopped playing '}, {text: bot.music.song.name, color: 'gold'}]));
|
||||
try {
|
||||
bot.core.run('minecraft:tellraw @a ' + JSON.stringify([{text: 'Stopped playing '}, {text: bot.music.song.name, color: 'gold'}]));
|
||||
} catch (e) {
|
||||
return;
|
||||
}
|
||||
bot.music.stop();
|
||||
}
|
||||
if (args[0]==='loop') {
|
||||
|
|
2
index.js
2
index.js
|
@ -160,7 +160,7 @@ function main() {
|
|||
try {
|
||||
if (bot.queue[0]) {
|
||||
try {
|
||||
bot.write('chat', {message: bot.queue[0]});
|
||||
bot.write('chat', {message: bot.queue[0].substring(0, 256)});
|
||||
bot.queue.shift();
|
||||
} catch (e) {
|
||||
return;
|
||||
|
|
|
@ -33,7 +33,7 @@ function inject(bot, dcclient) {
|
|||
.setDescription(`\`\`\`${e}\`\`\``);
|
||||
channeldc.send({embeds: [Embed]});
|
||||
} else {
|
||||
bot.core.run('minecraft:tellraw chayapak ' + JSON.stringify({text: String(e), color: 'red'}));
|
||||
bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: String(e), color: 'red'}));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -65,7 +65,7 @@ function inject(bot) {
|
|||
if (gameMode !== 1) bot.chat('/minecraft:gamemode creative @s[type=player]');
|
||||
if (!prefix) bot.chat('/extras:prefix &8[&eChomeNS Bot&8]');
|
||||
if (muted) bot.chat('/essentials:mute ' + bot.uuid);
|
||||
}, 1000);
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
module.exports = {inject};
|
||||
|
|
Loading…
Reference in a new issue