aboutsummaryrefslogtreecommitdiff
path: root/extramemes.go
diff options
context:
space:
mode:
Diffstat (limited to 'extramemes.go')
-rw-r--r--extramemes.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/extramemes.go b/extramemes.go
index 4bac256..fb2f8f6 100644
--- a/extramemes.go
+++ b/extramemes.go
@@ -2,6 +2,7 @@ package thulani
import (
"math/rand"
+ "regexp"
"strings"
"time"
)
@@ -13,6 +14,7 @@ func init() {
var extraMemes = []func(*messageCtx) MemeStatus{
respondToFuckYou,
respondToMeme,
+ respondToRaaaaaaaaaaaay,
}
var hateMatch = []string{
@@ -70,3 +72,15 @@ func respondToMeme(ctx *messageCtx) MemeStatus {
ctx.sendMessage("i am not yet capable of memeing.", false)
return Interrupt
}
+
+var ray = regexp.MustCompile("ra+y")
+
+// TODO: play the sound clip
+func respondToRaaaaaaaaaaaay(ctx *messageCtx) MemeStatus {
+ if ctx.Matched && ray.MatchString(ctx.Command) {
+ ctx.sendMessage(ctx.Command, true)
+ return Interrupt
+ }
+
+ return Continue
+}