Giter Club home page Giter Club logo

botsay's Introduction

botsay License Go Report Card

Like cowsay, but with ASCII robots generated with go-asciibot, which is based on asciibots, which is in turn based on 1k-asciibots which is inspired by the Robot Factory game.

Examples

Output of botsay 'Build complete':

     .===.          .----------------.
    //o o\\         | Build complete |
    \\_v_//         '----------------'
  .==|>o<|==:=L
  '=c|___|
    .'._.'.
    |_| |_|

Output of botsay -- $(fortune):

       Y__           .--------------------------------------------.
     _/- -\_         | If you think last Tuesday was a drag,      |
      \_O_/       --<| wait till you see what happens tomorrow!   |
   .==|>o<|==:=L     '--------------------------------------------'
   '=c|___|
      (   )
     __) (__

Output of botsay -- $(botsay;botsay;botsay):

     _._._          .--------------------------------------------.
    -)O O(-         | )_( .--. |- -| '--' |_^_| o==|ooo|==o      |
     \_0_/       --<| |___| // \\ _\\ //_ .===./` .--. /.- -.    |
  .==|>o<|==:=L     | \ '--' "\_n_/" ,"|+ |". _\|+__|/_ ( )      |
  '=c|___|          | __) (__ _._._ .--. -)ooo(- '--' \_=_/      |
     ]| |[          | (m9\:::/\ /___\6 . /___\ . . ..:::::::. .  |
    [_| |_]         '--------------------------------------------'

Output of date --iso-8601 | botsay -:

      .---.          .-------------.
     } - - {         | 2019-06-03  |
      \_O_/          '-------------'
  .-._/___\_.-.
  ;   \___/   ;
      |_|_|
      /_|_\

Color support

Use -c if you wish to colorize the output text with a synthwave/rainbow-like effect:

Installation

With Go 1.17 or later:

go install github.com/xyproto/botsay@latest

Flags

  • -c - color the output with rainbow-like colors
  • --version - output the current version
  • --help - output brief help

Known issues

  • For longer pieces of text, there may be formatting issues.

General info

botsay's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

botsay's Issues

Wrong bubble width for non-latin text

When using some non latin chars it's wrongly calculates the width of the bubble. The issue become critical for long texts with multiline. It breaks the picture totally. Looks like when it calculates the bubble width, all non latin chars are calculated twice.

How to reproduce:

Just execute something like botsay 'Привет'

What you see:

 .--------------.
 | Привет       |
 '--------------'

Expected behaviour:

 .--------.
 | Привет |
 '--------'

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.