Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anime command, Jikan MAL API #33

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

osuletz
Copy link

@osuletz osuletz commented Apr 6, 2018

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

Copy link
Contributor

@germanoeich germanoeich left a comment

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.

}

async execute({ message, args }) {
let msg = await this.sendMessage(message.channel, {
Copy link
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

{
name: 'Description',
value: `${anime.description}`,
inline: true,
Copy link
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

embed: {
color: 0x337fd5,
thumbnail: {
url: 'https://cdn.discordapp.com/emojis/397911964988342282.gif',
Copy link
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

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.

None yet

2 participants