-doc produces the entire readme

This commit is contained in:
Aaron Bieber 2020-03-13 08:08:10 -06:00
parent 9fc6201991
commit e3ff68edff
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,4 @@
# mcchunkie
[![builds.sr.ht status](https://builds.sr.ht/~qbit/mcchunkie.svg)](https://builds.sr.ht/~qbit/mcchunkie?)
@ -13,7 +14,7 @@
|Hi|`(?i)^hi|hi$`|Friendly bots say hi.|
|LoveYou|`(?i)i love you`|Spreading love where ever we can by responding when someone shows us love.|
|OpenBSDMan|`(?i)^man: ([1-9][p]?)?\s?(.+)$`|Produces a link to man.openbsd.org.|
|Palette|`(?i)^#[a-f0-9]{6}$`|Creates an solid 256x56 image of the color specified.|
|Palette|`(?i)^#[a-f0-9]{6}$`|Creates an solid 56x56 image of the color specified.|
|Snap|`(?i)^snap:$`|checks the current build date of OpenBSD snapshots.|
|Source|`(?i)where is your (source|code)`|Tell people where they can find more information about myself.|
|Thanks|`(?i)^thank you|thank you$|^thanks|thanks$|^ty|ty$`|Bots should be respectful. Respond to thanks.|

View File

@ -15,6 +15,12 @@ import (
"suah.dev/mcchunkie/plugins"
)
const header = `
# mcchunkie
[![builds.sr.ht status](https://builds.sr.ht/~qbit/mcchunkie.svg)](https://builds.sr.ht/~qbit/mcchunkie?)
`
func main() {
var username, password, userID, accessToken, server, db, avatar, botOwner string
var key, value, get string
@ -53,6 +59,7 @@ func main() {
}
if doc {
fmt.Println(header)
fmt.Println("|Plugin Name|Match|Description|")
fmt.Println("|----|---|---|")
for _, p := range plugins.Plugs {