else if (message.content.startsWith(prefix + 'test2')) //you can change command name here - not recommended but you can :)
{
message.reply('**Just a Test2**');
fs.truncate('../ConsoleClient/Console/output.txt', 0, function(){});
setTimeout(function () {
var out = fs.readFileSync('../ConsoleClient/RaidAlerts/messages.txt', 'utf-8').toString();
var out3 = "test2";
if(out == "stone")
{
out3 = "Walls are fine";
}
else if(out == "air")
{
out3 = "**WEEWOO** We´re being raided **WEEWOO**";
}
else if(out == "other")
{
out3 = "Someone changed the block. Check ASAP";
}
const outembed = new Discord.RichEmbed()
.setColor(0xe580ff)
.setTimestamp()
.setTitle('Walls')
.addField('Status', "```" + out3 + out + "```")
.setURL("https://de.namemc.com/profile/Memag")
message.channel.sendEmbed(outembed)
fs.truncate('../ConsoleClient/Console/output.txt', 0, function(){});
}, 1000);
}
Почему говорится, что "Стены самые прекрасные" или "Стены самые прекрасные" или "Стены самые прекрасные" вместо "Стены в порядке", " WEEWOO На нас совершают набеги WEEWOO"и" Кто-то изменил блок. Проверьте как можно скорее "?