glass-shatter, ghost, tax Commands + Bug Fixes

This commit is contained in:
Dragon Fire
2020-04-19 16:23:43 -04:00
parent d24a413785
commit 0a3f632b7a
10 changed files with 147 additions and 7 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ module.exports = class AnimeAiringCommand extends Command {
try {
const anime = await this.getList();
if (!anime) return msg.say('No anime air today...');
const mapped = anime.map(ani => {
const mapped = anime.sort((a, b) => a.airingAt - b.airingAt).map(ani => {
const title = ani.media.title.english || ani.media.title.romaji;
const airingAt = moment(ani.airingAt * 1000).tz('Asia/Tokyo').format('h:mm A');
return `${title} (@${airingAt} JST)`;