vk.updates.hear(/^(?:4)$/i, async (context) => {
axios.get(`https://minecraft-statistic.net/api/server/top/145.239.133.118_25565/all/1`).then(res => {
return res.data;
}).then(data => {
let message = '';
data.data.forEach(item => {
data.data.sort((a, b) => a.place - b.place);
message += item.nickname + ' - Место ' + item.place + '\n';
})
return context.send(message);
})
});