quotes

package
v0.0.0-...-bdea560 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: MIT Imports: 11 Imported by: 0

README

Quotes

On startup, it will create an sqlite3 database quotes.db in your bot's working directory.

Depending on your user setup (see the documentation about authorization), users now have the following commands at their disposal:

  • !addquote <your quote> Add a quote to the database.

  • !quote Without any parameters, returns a random quote.

  • !quote <words> [<num>] Add words to match quotes against them. If several quotes match, an optional <num> requests a specific one.

  • !quote -id <id> All quotes have an ID; use this syntax to request a specific quote.

  • !delquote -id <id> Remove a quote, specify its ID.

  • !quoteinfo -id <id> Tells you who recorded that shameful uttering.

Documentation

Overview

Package quotes is your friendly neighbourhood quote monster. It can record, play back and delete quotes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Quote

type Quote struct {
	ID        uint      `db:"id"`
	Channel   string    `db:"channel"`
	Author    string    `db:"author"`
	Timestamp time.Time `db:"timestamp"`
	Content   string    `db:"content"`
}

Quote holds a singular quote

Jump to

Keyboard shortcuts

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