This commit is contained in:
ChomeNS 2022-08-16 19:15:11 +07:00
parent a3a878cd29
commit 0b8af86ca5
4 changed files with 8 additions and 4 deletions

View file

@ -71,7 +71,11 @@ module.exports = {
playUrl(bot, args.slice(1));
}
if (args[0]==='stop') {
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') {

View file

@ -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;

View file

@ -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'}));
}
}
};

View file

@ -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};