commands

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package commands contains all the commands of the app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllQuotes

func AllQuotes() []string

AllQuotes prints all quotes.

func Chat

func Chat()

Chat randomly selects a Quotes ending with a "?" and another one ending with a "." and prints them.

func Persistent

func Persistent(timer int, measure string)

Persistent prints a Quotes every certain amount of time.

func RandomQuote

func RandomQuote() string

RandomQuote returns a random quote from the collections of quotes

func Search(wordToSearch string)

Search filters every word in the database to match an input word and prints every Quotes that the word is part of.

func TalkBack

func TalkBack()

TalkBack prints a Quotes every time it gets an input message.

Types

type Quotes

type Quotes []string

Type Quotes contains quotes

Jump to

Keyboard shortcuts

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