Changed the layout of the econ system (removed two files that weren't needed) and added the anime/manga section

This commit is contained in:
ION606
2022-05-13 12:14:24 +03:00
parent da568e5ae7
commit 8019c57ead
10 changed files with 510 additions and 212 deletions
@@ -0,0 +1,24 @@
module.exports = {
name: 'top_anime',
description: 'Get the top anime of all time (according to MyAnimeList)',
execute(message, args) {
const axios = require('axios');
const cheerio = require('cheerio')
//Genre list area (not set up yet)
if (args.length != 0) {
return;
}
const url = "https://myanimelist.net/topanime.php?type=bypopularity";
axios(url)
.then(response => {
const html = response.data;
const $ = cheerio.load(html);
data = $('.top-ranking-table').text();
breakbar = "---------------------------------------------";
// message.channel.send(breakbar + "\n" + lyrics + "\n" + breakbar);
console.log(data);
})
.catch(console.error);
}
}