Skip to content

Anime command, Jikan MAL API#33

Open
osuletz wants to merge 3 commits into
FlexLabs:developfrom
osuletz:develop
Open

Anime command, Jikan MAL API#33
osuletz wants to merge 3 commits into
FlexLabs:developfrom
osuletz:develop

Conversation

@osuletz

@osuletz osuletz commented Apr 6, 2018

Copy link
Copy Markdown

Searches anime based on the search args and returns the first result (from MyAnimeList)
(first time, be gentle)

@germanoeich germanoeich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor observations here, but overall a great PR, specially for as your first PR, good job.

Comment thread src/commands/Anime.js Outdated
}

async execute({ message, args }) {
let msg = await this.sendMessage(message.channel, {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

msg is not reassigned, in that case it's better to use const instead of let

Comment thread src/commands/Anime.js Outdated
{
name: 'Description',
value: `${anime.description}`,
inline: true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is the last field and the biggest, I think it makes sense for it to not be inline and take up a whole row

Comment thread src/commands/Anime.js Outdated
embed: {
color: 0x337fd5,
thumbnail: {
url: 'https://cdn.discordapp.com/emojis/397911964988342282.gif',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discord CDNs can't be trusted, as the content may dissapear without further notice, or someone may delete the emoji.
I have uploaded that to our own CDN, mind chaning the link? https://cdn.dyno.gg/fun/discord_loading.gif

osuletz added 2 commits April 7, 2018 23:16
retrying, changed let to const, gif link and deleted inline from last field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants