All code formatted with gofmt
This commit is contained in:
@@ -4,46 +4,46 @@
|
||||
package talkers
|
||||
|
||||
import (
|
||||
// stdlib
|
||||
// stdlib
|
||||
"log"
|
||||
"math/rand"
|
||||
"time"
|
||||
// 3rd party
|
||||
"math/rand"
|
||||
"time"
|
||||
// 3rd party
|
||||
"github.com/go-telegram-bot-api/telegram-bot-api"
|
||||
)
|
||||
|
||||
func (t *Talkers) DurakMessage(update tgbotapi.Update) {
|
||||
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)
|
||||
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)
|
||||
|
||||
reactions := make([]string, 0)
|
||||
reactions = append(reactions, "Сам такой!",
|
||||
"А ты типа нет?",
|
||||
"Фу, как некультурно!",
|
||||
"Профессор, если вы такой умный, то почему вы такой бедный? /donate",
|
||||
"Попка – не дурак, Попка – самый непадающий бот!")
|
||||
reactions := make([]string, 0)
|
||||
reactions = append(reactions, "Сам такой!",
|
||||
"А ты типа нет?",
|
||||
"Фу, как некультурно!",
|
||||
"Профессор, если вы такой умный, то почему вы такой бедный? /donate",
|
||||
"Попка – не дурак, Попка – самый непадающий бот!")
|
||||
|
||||
// Praise the Random Gods!
|
||||
rand.Seed(time.Now().Unix())
|
||||
msg := tgbotapi.NewMessage(update.Message.Chat.ID, reactions[rand.Intn(len(reactions))])
|
||||
msg.ReplyToMessageID = update.Message.MessageID
|
||||
// Praise the Random Gods!
|
||||
rand.Seed(time.Now().Unix())
|
||||
msg := tgbotapi.NewMessage(update.Message.Chat.ID, reactions[rand.Intn(len(reactions))])
|
||||
msg.ReplyToMessageID = update.Message.MessageID
|
||||
|
||||
c.Bot.Send(msg)
|
||||
c.Bot.Send(msg)
|
||||
}
|
||||
|
||||
func (t *Talkers) MatMessage(update tgbotapi.Update) {
|
||||
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)
|
||||
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)
|
||||
|
||||
reactions := make([]string, 0)
|
||||
reactions = append(reactions, "Фу, как некультурно!",
|
||||
"Иди рот с мылом помой",
|
||||
"Тшшшш!",
|
||||
"Да я твою мамку в кино водил!",
|
||||
reactions := make([]string, 0)
|
||||
reactions = append(reactions, "Фу, как некультурно!",
|
||||
"Иди рот с мылом помой",
|
||||
"Тшшшш!",
|
||||
"Да я твою мамку в кино водил!",
|
||||
"Приятно пообщаться с умным собеседником. К тебе это не относится.")
|
||||
|
||||
// Praise the Random Gods!
|
||||
rand.Seed(time.Now().Unix())
|
||||
msg := tgbotapi.NewMessage(update.Message.Chat.ID, reactions[rand.Intn(len(reactions))])
|
||||
msg.ReplyToMessageID = update.Message.MessageID
|
||||
// Praise the Random Gods!
|
||||
rand.Seed(time.Now().Unix())
|
||||
msg := tgbotapi.NewMessage(update.Message.Chat.ID, reactions[rand.Intn(len(reactions))])
|
||||
msg.ReplyToMessageID = update.Message.MessageID
|
||||
|
||||
c.Bot.Send(msg)
|
||||
c.Bot.Send(msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user