blathersText()
is a JavaScript plugin that generates quotes from Blathers by specifying a category (e.g. bugs, fish), or leaving it blank to retrieve a random quote. All quotes are from ACNH, which Blathers will say when the player donates a specimen and presses "Tell me about this!".
Just for fun! Blathers yaps a lot, so I figured it would be a perfect opportunity to spice up lorem ipsum.
- list of bugs, fish and sea creatures: u/ItsBrettly's spreadsheet
- specimen donation quotes: animalcrossing.fandom.com & nookipedia.com
- list of complete fossils (groups): Nookipedia API
(Expand for banner credits.)
- ACNH leaf pattern background: u/Vach
- ACNH speech bubble PNG: triviacrossing
- fonts: FOT Rodin Bokutoh Pro, FOT Seurat Pro
Add the following code under <head>
:
<script src="https://cdn.jsdelivr.net/gh/glenthemes/blathers-text/blathersText.js"></script>
<script>
blathersText();
</script>
The following are two options:
- for basic usage please read Method 1 (HTML).
- if you want to further process the data in JavaScript, please read Method 2 (JavaScript).
You can choose to inject text into an HTML element (e.g. a <p>
) by adding the blathersText
attribute:
<p class="optional-class" blathersText></p>
Option name | Details |
---|---|
blathersText="" or simply blathersText |
gets a random quote |
blathersText="bug" |
gets a random quote from the bugs category |
blathersText="fish" |
gets a random quote from the fish category |
blathersText="sea creature" |
gets a random quote from the sea creatures category |
blathersText="fossil" |
gets a random quote from the fossils category |
e.g. blathersText="pop-eyed goldfish" |
gets the quote of a particular specimen (not random) |
👁️ Method 1 (HTML) demo/preview
Beneficial if you want to do something further with the quote.
blathersText(OPTION_NAME).then(output => {
console.log(output) // whatever you want to do with the quote
})
Function call with option name | Details |
---|---|
blathersText() |
gets a random quote |
blathersText("bug") |
gets a random quote from the bugs category |
blathersText("fish) |
gets a random quote from the fish category |
blathersText("sea creature") |
gets a random quote from the sea creatures category |
blathersText("fossil") |
gets a random quote from the fossils category |
e.g. blathersText("pop-eyed goldfish") |
gets the quote of a particular specimen (not random) |
👁️ Method 2 (HTML) demo/preview
- Option names (e.g.
bugs
,fish
) are not case-sensitive (e.g.T. Rex
is the same ast. rex
) - If you are retrieving the quote for a particular specimen (e.g.
pop-eyed goldfish
), remember to include any hyphens-
, and make sure the syntax matches exactly to how it is in-game! If in doubt, search them up on animalcrossing.fandom.com or nookipedia.com! - Do not remove any quotation marks provided in the example(s).
If you have any questions or run into any issues, you can contact me via: