From e3ff68edff018d489af93e3ed37b3f60847e53a1 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Fri, 13 Mar 2020 08:08:10 -0600 Subject: [PATCH] -doc produces the entire readme --- README.md | 3 ++- main.go | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 37623cf..9682dbe 100644 --- a/README.md +++ b/README.md @@ -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.| diff --git a/main.go b/main.go index c322720..43b76b8 100644 --- a/main.go +++ b/main.go @@ -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 {