From 4ce8113afc7c67ee20eb16d50cb73152eec147f6 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Mon, 15 Feb 2016 16:52:25 +0000 Subject: [PATCH] mods: start work on memegen --- Makefile | 1 + mods/memegen.go | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 mods/memegen.go diff --git a/Makefile b/Makefile index 5984105..e671976 100644 --- a/Makefile +++ b/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 diff --git a/mods/memegen.go b/mods/memegen.go new file mode 100644 index 0000000..cd5dfd6 --- /dev/null +++ b/mods/memegen.go @@ -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") { + } + } +}