mods: start work on memegen
This commit is contained in:
parent
f0d265f374
commit
4ce8113afc
2 changed files with 15 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -2,6 +2,7 @@ all: clessy-broker clessy-mods clessy-stats
|
|||
|
||||
deps:
|
||||
go get github.com/boltdb/bolt/...
|
||||
go get github.com/golang/freetype
|
||||
|
||||
install-tg:
|
||||
go install github.com/hamcha/clessy/tg
|
||||
|
|
14
mods/memegen.go
Normal file
14
mods/memegen.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/hamcha/clessy/tg"
|
||||
)
|
||||
|
||||
func memegen(broker *tg.Broker, update tg.APIMessage) {
|
||||
if update.Caption != nil {
|
||||
if strings.HasPrefix(*(update.Caption), "/meme") {
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue