all repos — paprika @ 812bfbf89dc1a08aaf6a7174442126c9ff88f451

go rewrite of taigabot

Some more meme shit
Anirudh Oppiliappan x@icyphox.sh
Thu, 30 Dec 2021 22:13:23 +0530
commit

812bfbf89dc1a08aaf6a7174442126c9ff88f451

parent

bb94c73d8044300715bfbb15bddc34634ef755ab

1 files changed, 10 insertions(+), 2 deletions(-)

jump to
M plugins/meme.goplugins/meme.go

@@ -31,6 +31,7 @@

func (Meme) Execute(m *irc.Message) (string, error) { parts := strings.SplitN(m.Trailing(), " ", 2) trigger := parts[0] + rand.Seed(time.Now().Unix()) var target string if len(parts) > 1 { target = parts[1]

@@ -44,9 +45,13 @@ // lol

if m.Prefix.Name == "IRSSucks" { target = "IRSSucks" } - return fmt.Sprintf("%s is a %s", target, string(n)), nil + word := string(n) + if rand.Intn(10) == 8 { + // Easter egg! Only teh cool h4x0rz will get this. + word = "bmlnZ2Vy" + } + return fmt.Sprintf("%s is a %s", target, word), nil case ".kiss", ".love": - rand.Seed(time.Now().Unix()) kaomoji := []string{ "(●´□`)", "(。・ω・。)ノ", "(。’▽’。)", "(ෆ ͒•∘̬• ͒)◞", "( •ॢ◡-ॢ)-", "⁽⁽ପ( •ु﹃ •ु)​.⑅*",

@@ -62,6 +67,9 @@ return fmt.Sprintf(

"\x02[QUALITY OF CHANNEL SIGNIFICANTLY %sD]\x02", strings.ToUpper(trigger[1:]), ), nil + case ".sniff": + return fmt.Sprintf("huffs %s's hair while sat behind them on the bus.", target), nil + } return "", nil }