DEV Community

Cover image for [Node.js] Introducing Aniquotes
Yuma-Tsushima
Yuma-Tsushima

Posted on • Updated on

[Node.js] Introducing Aniquotes

Introducing Aniquotes! The one and only anime quote grabber.
Aniquotes can collect and slice quotes out the mix, from characters and your favourites, Attack on Titan and Tokyo ghoul!
You can use npm to install my module!
Before you keep reading please star my repo bellow :)

GitHub logo Yuma-Tsushima07 / aniquotes

Collects anime quotes!

aniquotes

Collects anime quotes for node.js, discord.js Who doesn't like a dose of anime from time to time, maybe a quote to motivate you?

NPM

Usage

Discord.js Example

const { MessageEmbed } = require('discord.js');
const { randomQuote } = require('aniquotes-npm')
const { searchAnime } = require('node-kitsu'); // credits to the person who made node-kitsu!!
module.exports = {
  name: "aniquote",
run: async ( client, message) => {
    const { quote, anime, id, name } = randomQuote();

    const res = await searchAnime(anime,0).catch(()=>{}) || [];

    const image = res?.[0]?.attributes?.coverImage?.original || null;

    return message.channel.send(
      new MessageEmbed()
Enter fullscreen mode Exit fullscreen mode

Getting Starting

Firstly, you will need node.js to install and implement this package into your projects.

Then use npm to install my module..

npm install aniquotes-npm
Enter fullscreen mode Exit fullscreen mode

or ...

npm i aniquotes-npm
Enter fullscreen mode Exit fullscreen mode

How to use Aniquotes?

You may ask to yourself, I have installed the module but how to use this?
You may add it into your discord bot.

Example

const { MessageEmbed } = require('discord.js');
const { randomQuote } = require('aniquotes-npm')
const { searchAnime } = require('node-kitsu'); // credits to the person who made node-kitsu!!
module.exports = {
  name: "aniquote",
run: async ( client, message) => {

    const { quote, anime, id, name } = randomQuote();

    const res = await searchAnime(anime,0).catch(()=>{}) || [];

    const image = res?.[0]?.attributes?.coverImage?.original || null;

    return message.channel.send(
      new MessageEmbed()
      .setColor(`#b60c0c`)
      .addField(`Quoted from ${anime}*`,`${quote}\n\n-${name}`)
      .setImage(image)
      .setTimestamp()
      .setFooter('Made by Yuma-Tsushima07 with ❤️')
    );
  }
};
Enter fullscreen mode Exit fullscreen mode

This is freshly from my Discord bot by the way ;)

You may use it like this also if you wanted to add it with your other projects.

const aniquote = require('aniquotes-npm')

// Shows a random anime quote
console.log(aniquote.randomQuote())

// You can also fetch quotes by their id
console.log(aniquote.getQuote(7))

// Fetching quotes from an anime! Nice!!
console.log(aniquote.getQuotesByAnime('Tokyo Ghoul'))

// Who said you couldn't fetch quotes from a character!
console.log(aniquote.getQuotesByCharacter('Sakura Kinomoto'))
Enter fullscreen mode Exit fullscreen mode

For further examples check out my repo! Please drop a comment and star bellow!

GitHub logo Yuma-Tsushima07 / aniquotes

Collects anime quotes!

aniquotes

Collects anime quotes for node.js, discord.js Who doesn't like a dose of anime from time to time, maybe a quote to motivate you?

NPM

Usage

Discord.js Example

const { MessageEmbed } = require('discord.js');
const { randomQuote } = require('aniquotes-npm')
const { searchAnime } = require('node-kitsu'); // credits to the person who made node-kitsu!!
module.exports = {
  name: "aniquote",
run: async ( client, message) => {
    const { quote, anime, id, name } = randomQuote();

    const res = await searchAnime(anime,0).catch(()=>{}) || [];

    const image = res?.[0]?.attributes?.coverImage?.original || null;

    return message.channel.send(
      new MessageEmbed()
Enter fullscreen mode Exit fullscreen mode

Thanks for reading. Please give me some credit bellow <3

Credits

Welcome to Yuma-Tsushima's Github page!

Visitor count

Support Discord Discord SoundCloud


About Myself

Hello, my name is Yuma-Tsushima (frequently shortened to Yuma). I am an ambitious coder, and I enjoy coding in JavaScript (mainly). I also love making websites using HTML, CSS and (of course) JS! I started programming (self taught) at the age of 13. Originally, I came from the creative field ; I draw/sing/animate/make music.


Talents and Hobbies

I love drawing (I have been drawing all of my life). I play strategy games, I code and I do CTFs! I am also good at animation, making AMVs and image editing. My favourite game is Mindustry, followed by Flow Free and Sudoku. I love watching anime (I love Code Geass - I relate to Lelouch a lot) and I aspire to create my own anime!

Drawing Music Digital Artwork ICT Electronics Desgins Web dev Strategy

Check out my work!:
❯ Soundcloud : 0c7av3h4ck5
❯ Discord : {CyberArtByte}
❯ Artwork : AcceleratorArts07

Recent Medium

Follow me!

Discord Servers!!

Bounty Hunters: An amazing bug hunting community full of developers and exploiters!!!

CyberArtByte: My server full of bling and joy!!

New Soundcloud Track!!

Author: Yuma-Tsushima

Top comments (0)