package
Version:
v0.0.0-...-bdea560
Opens a new window with list of versions in this module.
Published: Aug 25, 2017
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
Package quotes is your friendly neighbourhood quote monster. It can record, play back and delete quotes.
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.