Skip to content

Fix Issue #14#17

Merged
retrixe merged 5 commits intoretrixe:masterfrom
0xVR:bug/14
Oct 5, 2020
Merged

Fix Issue #14#17
retrixe merged 5 commits intoretrixe:masterfrom
0xVR:bug/14

Conversation

@0xVR
Copy link
Collaborator

@0xVR 0xVR commented Oct 1, 2020

Fix #14
This was due to the API changing their 404 message. I also made it try joining the arguments if a sub breed isn't found, so that doing /dog german shepherd is possible

Copy link
Owner

@retrixe retrixe left a comment

Choose a reason for hiding this comment

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

No dogs have spaces in their name, the arguments should always be joined, the only positive of doing it like this is that invalid commands like /dog shiba literally anything here works, but also incur a performance cost even valid usages.

0xVR and others added 3 commits October 5, 2020 18:18
Co-authored-by: Ibrahim Ansari <retrixe@users.noreply.github.com>
Co-authored-by: Ibrahim Ansari <retrixe@users.noreply.github.com>
Copy link
Owner

@retrixe retrixe left a comment

Choose a reason for hiding this comment

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

Well, the previous suggestions were pretty bad since I failed to notice there are sub-breeds, but this is a better iteration of those changes that have been reverted now, I suppose this is fine.

Co-authored-by: Ibrahim Ansari <retrixe@users.noreply.github.com>
@retrixe retrixe merged commit f76f960 into retrixe:master Oct 5, 2020
@retrixe retrixe added the bug label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Entering an invalid breed for /dog causes the bot to error

2 participants