GithubHelp home page GithubHelp logo

gensoquote's Introduction

gensoquote

Like fortune, but in Gensokyo and memory safe™.

gensoquote-git

Examples

"I'm the strongest!"
-- Cirno, "Phantasmagoria of Flower View"
"... She was supposed to be strong? Wait, she's your shikigami? Aren't you a shikigami yourself?"
-- Reimu Hakurei, "Perfect Cherry Blossom, Extra Stage"
"It ain't magic if it ain't flashy. Danmaku's all about firepower."
-- Marisa Kirisame, "Perfect Memento in Strict Sense"
"Read your mind? I've already closed my satori eye. Reading people's minds only makes you depressed, there's nothing good about it."
-- Koishi Komeiji to Reimu Hakurei, "Subterranean Animism, Extra Stage"

Features

  • Over 600 quotes from all over the Touhou Project
  • Select your favorite character (-c or --character option)
  • Format quote to any of your tastes (-f or --format option)

Installation

Using cargo

cargo install gensoquote

From package manager

Arch Linux

Available as AUR package 🎉

From source

Pre requirements: "Rust" installed

Install rustup using your preferred package manager or follow the official installation tutorial.

Steps:

  1. Clone the repo:
git clone https://github.com/dmyTRUEk/gensoquote
  1. cd in it:
cd gensoquote
  1. Build in release(optimized) mode:
cargo build --release
  1. Locate single final binary at ./target/release/gensoquote. You can copy it to ~/.local/bin/ for convenient use.

Usage

Simply run gensoquote to get random quote.

Run gensoquote -h or gensoquote --help to get help.

Select character who's random quote you want to get by running gensoquote -c koishi or gensoquote --character 'Koishi Komeiji'.

Or pipe it to fumosay for even more funkyness: gensoquote | fumosay.

Rumors say that piping it to lolcat generates unforgettable experience: gensoquote | fumosay | lolcat.

License

All the rights for quotes and characters belongs to corresponding author (mostly Zun), while the code and related things are distributed under MIT* license.

Contributions

Contributions are welcome!

Plz use tabs for indenting (they have a lot of benefits compared to spaces, think about it).

Acknowledgments

Thanks to @randomtwdude and their fumosay for massive inspiration.

Thanks to @kojq for AUR packaging.

gensoquote's People

Contributors

dmytruek avatar kojq avatar

Stargazers

 avatar  avatar

Watchers

 avatar

gensoquote's Issues

[FEATURE] Installation script

I wrote a simple bash script to install gensoquote. (part of the fumosay-gensoquote wrapper script)
gensoquote_install.txt

  • It reminds you to install the dependencies (curl and git)
  • It handles installing cargo automatically, if needed
  • Installs to /usr/local/bin
  • Tested on Debian WSL2

Formatting suggestions

These could be flags/configs or just general changes:

  • newline between quote and author
  • option to remove author
  • option to remove quotation marks from quotes
  • author text is right-justified
  • choose justification of the quote and author
  • option to wrap after, for example, a certain number of characters

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.