From 68c5852ee55ef788109693fff7779e1adb016624 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Sat, 2 Dec 2017 13:54:13 +0400 Subject: [PATCH] Some personalization in easter eggs. --- lib/talkers/easter.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/talkers/easter.go b/lib/talkers/easter.go index f2e9906..7d90719 100644 --- a/lib/talkers/easter.go +++ b/lib/talkers/easter.go @@ -12,6 +12,12 @@ import ( // LongMessage is an easter egg func (t *Talkers) LongMessage(update *tgbotapi.Update) { message := "Я ТЕБЕ НЕ ЗЕЛЁНЫЙ АКСОЛОТЛЬ! А ТЫ - НЕ ЦИФЕРКА!" + trigger := rand.Intn(5) + if trigger > 3 { + if update.Message.From.ID == 203319120 || update.Message.From.ID == 372137239 { + message = "НЕ РАКОНЬ!" + } + } msg := tgbotapi.NewMessage(update.Message.Chat.ID, message) msg.ReplyToMessageID = update.Message.MessageID @@ -29,7 +35,11 @@ func (t *Talkers) DurakMessage(update *tgbotapi.Update) { // Praise the Random Gods! rand.Seed(time.Now().Unix()) - msg := tgbotapi.NewMessage(update.Message.Chat.ID, reactions[rand.Intn(len(reactions))]) + message := reactions[rand.Intn(len(reactions))] + if update.Message.From.ID == 324205150 { + message = "Молодец, Яру. Возьми с полки пирожок." + } + msg := tgbotapi.NewMessage(update.Message.Chat.ID, message) msg.ReplyToMessageID = update.Message.MessageID c.Bot.Send(msg)