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

Fixed a couple of things, details in commits #19

Merged
merged 4 commits into from
Oct 3, 2018

Conversation

CaramelFur
Copy link

@CaramelFur CaramelFur commented Sep 20, 2018

And here we go, ma 3rd pull request.
Somehow these bois cant automatically merge and I don't know why.
I just added and change a couple things, mainly to fix derpibooru.
It works now. (at least for me)

Renzo Duin added 4 commits September 20, 2018 15:57
There was a bug in post.js were this.rating would be undefined,
this would result in the code crashing on this.rating.charAt(0)

Also derpibooru didn't have api key support, so now you can add your key
to the search options: {derpikey: "somekey"}
Sites.json:
removed the % from derpibooru random since it was not working with it,
it does work without and is completely random.

Booru.js:
actually save the credentials

Derpibooru.js:
change name of credentials argument
also commented out some weird shit for random posts

index.js:
parse the credentials argument also from here to the booru

package-lock.json:
npm just really wanted to change this
@AtoraSuunva
Copy link
Owner

AtoraSuunva commented Sep 20, 2018

There was a bug in post.js were this.rating would be undefined, [...]

That was because I forgot to add a [0] after <Regex>.exec(string) so it was trying to use an array and would just crash
Should be fixed in 78990e8 (aka v1.2.1) which changes a line you also changed

When I get time I'll look over how the boorus deal with credentials and see if we can just use apiKey instead so it's clearer

@AtoraSuunva AtoraSuunva self-requested a review October 3, 2018 00:31
@AtoraSuunva AtoraSuunva self-assigned this Oct 3, 2018
@AtoraSuunva AtoraSuunva merged commit 5fff67f into AtoraSuunva:master Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants