Skip to content

Commit

Permalink
Merge pull request #25 from NotKyoyo/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
NotKyoyo authored Oct 2, 2021
2 parents 8ca7013 + c951e09 commit 9d8e65f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<h3 align="center"><strong>Generate random anime facts with a huge database.</strong></h3>
<center><strong>Powered by <a href="https://animu.ml" target="_blank">Animu</a></strong></center>
<center><strong>Powered by <a href="https://airi.kyoyo.me/" target="_blank">Airi</a></strong></center>
<br>

Need support? _[Click here](https://discord.gg/yyW389c)_

### First make sure you have a [Animu](https://animu.ml) API Token. Join _[this](https://discord.gg/yyW389c)_ discord server to get one.
### First make sure you have a [Airi](https://airi.kyoyo.me/) API Token. Join _[this](https://discord.gg/yyW389c)_ discord server to get one.

## Installation:

Expand All @@ -30,16 +30,17 @@ $ yarn add anime-facts

## Usage:


```javascript
const AnimeFact =require("anime-facts");
const AnimeFact = require("anime-facts");
const api = new AnimeFact("YOUR TOKEN");

api.getFact().then((res) => console.log(res));
```

### Using Query:

```javascript
const AnimeFact =require("anime-facts");
const AnimeFact = require("anime-facts");
const api = new AnimeFact("YOUR TOKEN");
// Note currently there are only fews tags, length available in the database. So, it might return the same data multiple times.
api.getFact(null, 1, 100).then((res) => console.log(res));
Expand All @@ -54,11 +55,14 @@ api.getFact(null, 1, 100).then((res) => console.log(res));
```

## Functions

| **Functions** | **Description** |
| :-----------: | ---------------------------- |
| getFact | Generate random anime facts. |
| getFact | Generate random anime facts. |

## Credits
[@LamkasDev](https://github.com/LamkasDev) for adding facts to prior database. _PR [#1](https://github.com/notkyoyo/anime-facts/pull/1)_\
[@xMercyTheDeveloper](https://github.com/xMercyTheDeveloper) for adding a fact to prior database. _PR [#2](https://github.com/notkyoyo/anime-facts/pull/2)_\
[@Lioness100](https://github.com/Lioness100) for adding types and improving codes in version [2.2.6](https://www.npmjs.com/package/anime-facts/v/2.2.6). _PR [#3](https://github.com/notkyoyo/anime-facts/pull/3) and [#4](https://github.com/notkyoyo/anime-facts/pull/4)_

[@LamkasDev](https://github.com/LamkasDev) for adding facts to prior database\
[@xMercyTheDeveloper](https://github.com/xMercyTheDeveloper) for adding a fact to prior database\
[@Lioness100](https://github.com/Lioness100) for adding types and improving codes in version [2.2.6](https://www.npmjs.com/package/anime-facts/v/2.2.6)\
[@Aetrnyx](https://github.com/aetrnyx) for fixing the readme in [4.3.9](https://www.npmjs.com/package/anime-facts/v/4.3.9)
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "anime-facts",
"version": "4.3.8",
"version": "4.3.9",
"description": "Generate random anime facts.",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 9d8e65f

Please sign in to comment.