diff --git a/main.go b/main.go index 3cfbb46..2b8f503 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,8 @@ import ( "os/signal" "syscall" "strings" + "time" + "math/rand" "github.com/bwmarrin/discordgo" "github.com/spf13/viper" @@ -64,6 +66,31 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { return } + if strings.HasPrefix(m.Content, "!ask") { + possibleAnswers := []string{ + "Better not tell you now.", + "Signs point to yes.", + "My reply is no.", + "Yes.", + "Without a doubt.", + "I don't think so.", + "I doubt it.", + "NO!", + "Well... can't say for sure but maybe.", + "I think you need sleep.", + "Depends.", + "Skibidi dop dop dop yes yes yes gang gang!!!111", + "I don't think this is a good idea, honestly.", + "SHUT. THE. FUCK. UP", + "Hmm, let me think about that for a bit.", + } + rand.Seed(time.Now().Unix()) + reply := possibleAnswers[rand.Intn(len(possibleAnswers))] + s.ChannelMessageSend(m.ChannelID, reply) + return + + } + if strings.HasPrefix(m.Content, "!fart") { c := strings.Fields(m.Content) if len(c) == 1 {