Git Product home page Git Product logo

fortunes-vndb's Introduction

Fortunes-VNDB

Fortune file of VNDB quotes. Automatically updated through GitHub Action.

Why

Quoted from Yorhel via t1052.3:

Note

It takes all the fun of the randomness away if you know all of them already. :-P

And fortunes program has exactly the same charm. It becomes somehow hilarious if you pass the quote to other programs like cowsay:

fortunes | cowsay

Usage

  1. Note that it may contain NSFW content or spoilers so use it at your own risk
  2. Install fortune-mod or fortunes from your package manager
  3. Copy vndb AND vndb.dat to /usr/share/fortunes (or /usr/share/games/fortunes)
  4. You can now have VNDB quote via fortune vndb

Example commands:

$ sudo cp ./vndb* /usr/share/fortunes/

$ fortune vndb
I spent all of last year's Shiomi Festival participating in a self-sponsored Reading Festival at my apartment, actually.
        -- 筧 京太郎, Daitoshokan no Hitsujikai (https://vndb.org/v8158)

How

Data is obtained through VNDB Query. I have no idea about the meaning of score so omit it on purpose.

PostgreSQL Query:

SELECT vid, cid, quote
FROM vndb.quotes;

Or query VN titles, character names and format the output altogether, check query.sql.

If you want to create a custom VNDB fortune quote, you can either edit coded SQL query in format.py on VNDB Query, or alternatively, run the script locally, edit the JSON, and make a fortune dat yourself.

fortunes-vndb's People

Contributors

vinfall avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.