Add .kiss/.love
Anirudh Oppiliappan x@icyphox.sh
Thu, 30 Dec 2021 21:53:43 +0530
1 files changed,
15 insertions(+),
1 deletions(-)
jump to
M
plugins/meme.go
→
plugins/meme.go
@@ -3,7 +3,9 @@
import ( "encoding/base64" "fmt" + "math/rand" "strings" + "time" "gopkg.in/irc.v3" )@@ -18,7 +20,7 @@ var n []byte
func (Meme) Triggers() []string { n, _ = base64.StdEncoding.DecodeString("bmlnZ2Vy") - return []string{"." + string(n)} + return []string{"." + string(n), ".kiss"} } func (Meme) Execute(m *irc.Message) (string, error) {@@ -38,6 +40,18 @@ if m.Prefix.Name == "IRSSucks" {
target = "IRSSucks" } return fmt.Sprintf("%s is a %s", target, string(n)), nil + case ".kiss", ".love": + rand.Seed(time.Now().Unix()) + kaomoji := []string{ + "(●´□`)", "(。・ω・。)ノ", "(。’▽’。)", + "(ෆ ͒•∘̬• ͒)◞", "( •ॢ◡-ॢ)-", "⁽⁽ପ( •ु﹃ •ु).⑅*", + "(๑ Ỡ ◡͐ Ỡ๑)ノ", "◟(◔ั₀◔ั )◞ ༘", + } + return fmt.Sprintf( + "%s \x02\x034 。。・゜゜・。。・❤️ %s ❤️ \x03\x02", + kaomoji[rand.Intn(len(kaomoji))], + target, + ), nil } return "", nil }