rando

package module
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 6 Imported by: 0

README

rando - Random Insult and Codename Generator

Go Doc Software License

This project was initially started as a means to make our slackbot at work a bit more interesting. It's design was heavily influenced by the glorious Better Off Ted episode in which they develop an ingenious Insult Formula.

It was quickly realized that there were many more useful applications for rando, such as:

  • Making users feel bad about themselves when mistyping their passwords
  • Enrich boring errors by humilating the function that caused the error
  • Populating DB values like addedby/createdby with funny offensive codenames
  • Piping generated insults into espeak or say when clients are nearby
  • Helping new hires develop tougher skin, and self-esteem issues, etc...

It can be used as command-line tool or imported as a library in other projects. Some example usage is provided down yonder...

Install

Source

» go install github.com/traviscampbell/rando/cmd/rando@latest

or if just wanting to include as a library

 » get get -u github.com/traviscampbell/rando

Binaries

Releases

Usage & Examples

usage

Basic Insult

rando i, insult <target>

Just a simple, succinct, top-shelf insult that goes well with any occasion.

» rando i
You are a filthy reprehensible douchebag.

» rando insult rando
Rando is a dreadfully toxic cuck.

» rando insult your mom
Your Mom is a horribly incompetent thundercunt.
Emotionally Crippling Insult

rando d, destroy <target>

This generates a powerful compound insult that is then topped-off with finisher that is sure to cut the target to their core, keeping them awake at night reflecting on just how accurate the statement truly was.

» rando d
You are an extremely inept queef and a depraved disease-ridden dickhole who should slip into something more comfortable... like a coma.

» rando destroy rando
Rando is an annoyingly toxic shitter and a depraved piss-drinking tryhard whose existence is meaningless and only brings pain and suffering to those around them.
Codename Generation

rando c, codename [opts]

  • -fword: specifically set the first word of the codename (thanks @jakewarren)
  • -lword: specifically set the second word of the codename (thanks @jakewarren)
  • -sep: set a custom seperator between the codename words
  • -imabitch: just admit you are a little bitch and it'll give you a clean pc safe-space friendly name
» rando codename
CretinousFucknugget

» rando c -fword fappy
FappyScrotum

» rando codename -sep 💥
Sinister💥Schlong

» rando c -imabitch
LoudPanda
Library Usage Example
package main

import (
    "fmt"

    "github.com/traviscampbell/rando"
)

func main() {
    // submiting an empty string to insult or destroy
    // will default the insult to the prefix "You are"
    fmt.Println(rando.Insult(""))
    fmt.Println(rando.Destoy(""))

    // bitch, I dare you. ☜(꒡⌓꒡)
    fmt.Println(rando.Destroy("travis"))

    // (ノ☉ヮ⚆)ノ ⌒*:・゚✧ codenames
    cn := rando.Codenamer()
    fmt.Println(cn.Generate())
    fmt.Println(cn.WithSep("💥").Generate())

    // make sure embarrass and belittle functions if/when they err
    if err := mumpsimus(); err != nil {
        fmt.Println(rando.Destroy("mumpsimus"), " - ", err)
    }
}

func mumpsimus() error {
    return fmt.Error("i knew better, but didn't care")
}
Bonus

Keep your self-esteem in check by adding gentle self-affirmations to your ~/.bashrc file:

# gocat attempts to colorize at least something in any text stream
# ref: github.com/traviscampbell/gocat
» rando destroy | cowsay --random | gocat

meanrainbowcow

(V) (°,,,,°) (V) why not give a shit?

Give A Shit

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(name string) string

Destroy them on an emotional level with a devestating compound insult in the form: <Insult> and a(n)? <Adj> <CompoundAdj> <Noun> <Finisher>.

func Insult

func Insult(name string) string

Insult generates a simple insult of the form: (<Name> is|You are) a(n)? <Adv> <Adj> <Noun>.

func PoachEasterEgg

func PoachEasterEgg()

PoachEasterEgg disables protective easter egg shell

func SetEasterEggRegexp

func SetEasterEggRegexp(reStr string)

SetEasterEggRegexp lets you override the regexp val to help protect yourself from getting boiled, beaten, whisked, cracked deviled, scrambled, steamed, pickled, poached, baked, or even fried.

Types

type CN

type CN struct {
	// contains filtered or unexported fields
}

CN represents codename and the various options that can be applied.

func NewCodename

func NewCodename() *CN

NewCodename returns default pre-configured instance used to genrate and configure codenames.

func (*CN) Generate

func (cn *CN) Generate() string

Generate the fucking codename already.

func (*CN) HalfClean

func (cn *CN) HalfClean() *CN

HalfClean will pull a random adjective from the clean list but keep the noun filthy. It has it's moments...

func (*CN) Pussify

func (cn *CN) Pussify() *CN

Pussify will make sure ensure the space is kept safe

func (*CN) WithCAPS

func (cn *CN) WithCAPS() *CN

WithCAPS will return the codename in all caps

func (*CN) WithFWord

func (cn *CN) WithFWord(fw string) *CN

WithFWord sets the firstword to the word provided.

func (*CN) WithLWord

func (cn *CN) WithLWord(lw string) *CN

WithLWord sets the lastword to the word provided.

func (*CN) WithSep

func (cn *CN) WithSep(sep string) *CN

WithSep lets you customize what, if anything, will seperate the parts

Directories

Path Synopsis
cmd
rando command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL